public static class RangeIterator.Builder.Statistics<K extends java.lang.Comparable<K>,D extends CombinedValue<K>>
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected RangeIterator.Builder.IteratorType | iteratorType | 
| protected K | max | 
| protected RangeIterator<K,D> | maxRange | 
| protected K | min | 
| protected RangeIterator<K,D> | minRange | 
| protected long | tokenCount | 
| Constructor and Description | 
|---|
| Statistics(RangeIterator.Builder.IteratorType iteratorType) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isDisjoint() | 
| double | sizeRatio() | 
| void | update(RangeIterator<K,D> range)Update statistics information with the given range. | 
protected final RangeIterator.Builder.IteratorType iteratorType
protected long tokenCount
protected RangeIterator<K extends java.lang.Comparable<K>,D extends CombinedValue<K>> minRange
protected RangeIterator<K extends java.lang.Comparable<K>,D extends CombinedValue<K>> maxRange
public Statistics(RangeIterator.Builder.IteratorType iteratorType)
public void update(RangeIterator<K,D> range)
range - The range to update statistics with.public boolean isDisjoint()
public double sizeRatio()
Copyright © 2018 The Apache Software Foundation