Package com.yahoo.documentapi
Class VisitorIterator.DistributionRangeBucketSource
- java.lang.Object
-
- com.yahoo.documentapi.VisitorIterator.DistributionRangeBucketSource
-
- All Implemented Interfaces:
VisitorIterator.BucketSource
- Enclosing class:
- VisitorIterator
protected static class VisitorIterator.DistributionRangeBucketSource extends Object implements VisitorIterator.BucketSource
Provides a bucket source that encompasses the entire range available through a given value of distribution bits
-
-
Constructor Summary
Constructors Constructor Description DistributionRangeBucketSource(int distributionBitCount, ProgressToken progress, int slices, int sliceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDistributionBitCount()
VisitorIterator.BucketProgress
getNext()
long
getTotalBucketCount()
boolean
hasNext()
protected boolean
isLosslessResetPossible()
void
setDistributionBitCount(int distributionBitCount, ProgressToken progress)
boolean
shouldYield()
void
update(com.yahoo.document.BucketId superbucket, com.yahoo.document.BucketId progress, ProgressToken token)
boolean
visitsAllBuckets()
-
-
-
Constructor Detail
-
DistributionRangeBucketSource
public DistributionRangeBucketSource(int distributionBitCount, ProgressToken progress, int slices, int sliceId)
-
-
Method Detail
-
isLosslessResetPossible
protected boolean isLosslessResetPossible()
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceVisitorIterator.BucketSource
-
shouldYield
public boolean shouldYield()
- Specified by:
shouldYield
in interfaceVisitorIterator.BucketSource
-
visitsAllBuckets
public boolean visitsAllBuckets()
- Specified by:
visitsAllBuckets
in interfaceVisitorIterator.BucketSource
-
getTotalBucketCount
public long getTotalBucketCount()
- Specified by:
getTotalBucketCount
in interfaceVisitorIterator.BucketSource
-
getNext
public VisitorIterator.BucketProgress getNext()
- Specified by:
getNext
in interfaceVisitorIterator.BucketSource
-
getDistributionBitCount
public int getDistributionBitCount()
- Specified by:
getDistributionBitCount
in interfaceVisitorIterator.BucketSource
-
setDistributionBitCount
public void setDistributionBitCount(int distributionBitCount, ProgressToken progress)
- Specified by:
setDistributionBitCount
in interfaceVisitorIterator.BucketSource
-
update
public void update(com.yahoo.document.BucketId superbucket, com.yahoo.document.BucketId progress, ProgressToken token)
- Specified by:
update
in interfaceVisitorIterator.BucketSource
-
-