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
ConstructorsConstructorDescriptionDistributionRangeBucketSource(int distributionBitCount, ProgressToken progress, int slices, int sliceId) -
Method Summary
Modifier and TypeMethodDescriptionintgetNext()longbooleanhasNext()protected booleanvoidsetDistributionBitCount(int distributionBitCount, ProgressToken progress) booleanvoidupdate(com.yahoo.document.BucketId superbucket, com.yahoo.document.BucketId progress, ProgressToken token) boolean
-
Constructor Details
-
DistributionRangeBucketSource
public DistributionRangeBucketSource(int distributionBitCount, ProgressToken progress, int slices, int sliceId)
-
-
Method Details
-
isLosslessResetPossible
protected boolean isLosslessResetPossible() -
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceVisitorIterator.BucketSource
-
shouldYield
public boolean shouldYield()- Specified by:
shouldYieldin interfaceVisitorIterator.BucketSource
-
visitsAllBuckets
public boolean visitsAllBuckets()- Specified by:
visitsAllBucketsin interfaceVisitorIterator.BucketSource
-
getTotalBucketCount
public long getTotalBucketCount()- Specified by:
getTotalBucketCountin interfaceVisitorIterator.BucketSource
-
getNext
- Specified by:
getNextin interfaceVisitorIterator.BucketSource
-
getDistributionBitCount
public int getDistributionBitCount()- Specified by:
getDistributionBitCountin interfaceVisitorIterator.BucketSource
-
setDistributionBitCount
- Specified by:
setDistributionBitCountin interfaceVisitorIterator.BucketSource
-
update
public void update(com.yahoo.document.BucketId superbucket, com.yahoo.document.BucketId progress, ProgressToken token) - Specified by:
updatein interfaceVisitorIterator.BucketSource
-