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
ConstructorDescriptionDistributionRangeBucketSource
(int distributionBitCount, ProgressToken progress, int slices, int sliceId) -
Method Summary
Modifier and TypeMethodDescriptionint
getNext()
long
boolean
hasNext()
protected boolean
void
setDistributionBitCount
(int distributionBitCount, ProgressToken progress) boolean
void
update
(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:
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
- Specified by:
getNext
in interfaceVisitorIterator.BucketSource
-
getDistributionBitCount
public int getDistributionBitCount()- Specified by:
getDistributionBitCount
in interfaceVisitorIterator.BucketSource
-
setDistributionBitCount
- 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
-