Lines Matching refs:bucketNs
55 const bucketNs = this.cachedBucketSizeNs(rowCount); constant
56 if (bucketNs === undefined) {
62 (ts + ${bucketNs / 2}) / ${bucketNs} * ${bucketNs} as cached_tsq,
71 this.cachedBucketNs = bucketNs;
88 const bucketNs = constant
91 const rawResult = await this.queryData(startNs, endNs, bucketNs);
114 let endNsQ = Math.floor((endNs + bucketNs / 2 - 1) / bucketNs) * bucketNs;
115 endNsQ = Math.max(endNsQ, startNsQ + bucketNs);
130 private queryData(startNs: number, endNs: number, bucketNs: number):
132 const isCached = this.cachedBucketNs <= bucketNs;
133 const tsq = isCached ? `cached_tsq / ${bucketNs} * ${bucketNs}` :
134 `(ts + ${bucketNs / 2}) / ${bucketNs} * ${bucketNs}`;