Class OffsetRestrictionTracker
- java.lang.Object
-
- org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker<OffsetRestrictionTracker.OffsetRange,Offset>
-
- cz.o2.proxima.beam.core.direct.io.OffsetRestrictionTracker
-
public class OffsetRestrictionTracker extends org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker<OffsetRestrictionTracker.OffsetRange,Offset>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OffsetRestrictionTracker.OffsetRange
-
Nested classes/interfaces inherited from class org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker
org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker.HasProgress, org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker.IsBounded, org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker.Progress, org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker.TruncateResult<RestrictionT extends java.lang.Object>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkDone()
OffsetRestrictionTracker.OffsetRange
currentRestriction()
org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker.Progress
getProgress()
org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker.IsBounded
isBounded()
boolean
tryClaim(Offset position)
org.apache.beam.sdk.transforms.splittabledofn.SplitResult<OffsetRestrictionTracker.OffsetRange>
trySplit(double fractionOfRemainder)
-
-
-
Method Detail
-
tryClaim
public boolean tryClaim(Offset position)
- Specified by:
tryClaim
in classorg.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker<OffsetRestrictionTracker.OffsetRange,Offset>
-
currentRestriction
public OffsetRestrictionTracker.OffsetRange currentRestriction()
- Specified by:
currentRestriction
in classorg.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker<OffsetRestrictionTracker.OffsetRange,Offset>
-
trySplit
@Nullable public org.apache.beam.sdk.transforms.splittabledofn.SplitResult<OffsetRestrictionTracker.OffsetRange> trySplit(double fractionOfRemainder)
- Specified by:
trySplit
in classorg.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker<OffsetRestrictionTracker.OffsetRange,Offset>
-
checkDone
public void checkDone() throws java.lang.IllegalStateException
- Specified by:
checkDone
in classorg.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker<OffsetRestrictionTracker.OffsetRange,Offset>
- Throws:
java.lang.IllegalStateException
-
isBounded
public org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker.IsBounded isBounded()
- Specified by:
isBounded
in classorg.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker<OffsetRestrictionTracker.OffsetRange,Offset>
-
getProgress
public org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker.Progress getProgress()
-
-