public int getIndexSummarySamplingLevel() { return indexSummary.getSamplingLevel(); }
public int getIndexSummarySamplingLevel() { return indexSummary.getSamplingLevel(); }
public int getIndexSummarySamplingLevel() { return indexSummary.getSamplingLevel(); }
public int getIndexSummarySamplingLevel() { return indexSummary.getSamplingLevel(); }
/** * @param ranges * @return An estimate of the number of keys for given ranges in this SSTable. */ public long estimatedKeysForRanges(Collection<Range<Token>> ranges) { long sampleKeyCount = 0; List<Pair<Integer, Integer>> sampleIndexes = getSampleIndexesForRanges(indexSummary, ranges); for (Pair<Integer, Integer> sampleIndexRange : sampleIndexes) sampleKeyCount += (sampleIndexRange.right - sampleIndexRange.left + 1); // adjust for the current sampling level: (BSL / SL) * index_interval_at_full_sampling long estimatedKeys = sampleKeyCount * ((long) Downsampling.BASE_SAMPLING_LEVEL * indexSummary.getMinIndexInterval()) / indexSummary.getSamplingLevel(); return Math.max(1, estimatedKeys); }
/** * @param ranges * @return An estimate of the number of keys for given ranges in this SSTable. */ public long estimatedKeysForRanges(Collection<Range<Token>> ranges) { long sampleKeyCount = 0; List<Pair<Integer, Integer>> sampleIndexes = getSampleIndexesForRanges(indexSummary, ranges); for (Pair<Integer, Integer> sampleIndexRange : sampleIndexes) sampleKeyCount += (sampleIndexRange.right - sampleIndexRange.left + 1); // adjust for the current sampling level: (BSL / SL) * index_interval_at_full_sampling long estimatedKeys = sampleKeyCount * ((long) Downsampling.BASE_SAMPLING_LEVEL * indexSummary.getMinIndexInterval()) / indexSummary.getSamplingLevel(); return Math.max(1, estimatedKeys); }
/** * @param ranges * @return An estimate of the number of keys for given ranges in this SSTable. */ public long estimatedKeysForRanges(Collection<Range<Token>> ranges) { long sampleKeyCount = 0; List<Pair<Integer, Integer>> sampleIndexes = getSampleIndexesForRanges(indexSummary, ranges); for (Pair<Integer, Integer> sampleIndexRange : sampleIndexes) sampleKeyCount += (sampleIndexRange.right - sampleIndexRange.left + 1); // adjust for the current sampling level: (BSL / SL) * index_interval_at_full_sampling long estimatedKeys = sampleKeyCount * ((long) Downsampling.BASE_SAMPLING_LEVEL * indexSummary.getMinIndexInterval()) / indexSummary.getSamplingLevel(); return Math.max(1, estimatedKeys); }
/** * @param ranges * @return An estimate of the number of keys for given ranges in this SSTable. */ public long estimatedKeysForRanges(Collection<Range<Token>> ranges) { long sampleKeyCount = 0; List<Pair<Integer, Integer>> sampleIndexes = getSampleIndexesForRanges(indexSummary, ranges); for (Pair<Integer, Integer> sampleIndexRange : sampleIndexes) sampleKeyCount += (sampleIndexRange.right - sampleIndexRange.left + 1); // adjust for the current sampling level: (BSL / SL) * index_interval_at_full_sampling long estimatedKeys = sampleKeyCount * ((long) Downsampling.BASE_SAMPLING_LEVEL * indexSummary.getMinIndexInterval()) / indexSummary.getSamplingLevel(); return Math.max(1, estimatedKeys); }
/** * @param ranges * @return An estimate of the number of keys for given ranges in this SSTable. */ public long estimatedKeysForRanges(Collection<Range<Token>> ranges) { long sampleKeyCount = 0; List<Pair<Integer, Integer>> sampleIndexes = getSampleIndexesForRanges(indexSummary, ranges); for (Pair<Integer, Integer> sampleIndexRange : sampleIndexes) sampleKeyCount += (sampleIndexRange.right - sampleIndexRange.left + 1); // adjust for the current sampling level: (BSL / SL) * index_interval_at_full_sampling long estimatedKeys = sampleKeyCount * ((long) Downsampling.BASE_SAMPLING_LEVEL * indexSummary.getMinIndexInterval()) / indexSummary.getSamplingLevel(); return Math.max(1, estimatedKeys); }
if (samplingLevel > indexSummary.getSamplingLevel() || indexSummary.getMinIndexInterval() != minIndexInterval || effectiveInterval > maxIndexInterval) else if (samplingLevel < indexSummary.getSamplingLevel())
if (samplingLevel > indexSummary.getSamplingLevel() || indexSummary.getMinIndexInterval() != minIndexInterval || effectiveInterval > maxIndexInterval) else if (samplingLevel < indexSummary.getSamplingLevel())
if (samplingLevel > indexSummary.getSamplingLevel() || indexSummary.getMinIndexInterval() != minIndexInterval || effectiveInterval > maxIndexInterval) else if (samplingLevel < indexSummary.getSamplingLevel())
if (samplingLevel > indexSummary.getSamplingLevel() || indexSummary.getMinIndexInterval() != minIndexInterval || effectiveInterval > maxIndexInterval) else if (samplingLevel < indexSummary.getSamplingLevel())
int currentSamplingLevel = existing.getSamplingLevel(); assert currentSamplingLevel > newSamplingLevel; assert minIndexInterval == existing.getMinIndexInterval();
int currentSamplingLevel = existing.getSamplingLevel(); assert currentSamplingLevel > newSamplingLevel; assert minIndexInterval == existing.getMinIndexInterval();
int currentSamplingLevel = existing.getSamplingLevel(); assert currentSamplingLevel > newSamplingLevel; assert minIndexInterval == existing.getMinIndexInterval();
int currentSamplingLevel = existing.getSamplingLevel(); assert currentSamplingLevel > newSamplingLevel; assert minIndexInterval == existing.getMinIndexInterval();
int currentSamplingLevel = existing.getSamplingLevel(); assert currentSamplingLevel > newSamplingLevel; assert minIndexInterval == existing.getMinIndexInterval();