Class BatchRestrictionTracker
- java.lang.Object
-
- org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker<BatchRestrictionTracker.PartitionList,Partition>
-
- cz.o2.proxima.beam.core.direct.io.BatchRestrictionTracker
-
public class BatchRestrictionTracker extends org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker<BatchRestrictionTracker.PartitionList,Partition>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBatchRestrictionTracker.PartitionList-
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 voidcheckDone()BatchRestrictionTracker.PartitionListcurrentRestriction()org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker.ProgressgetProgress()org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker.IsBoundedisBounded()booleantryClaim(Partition partition)org.apache.beam.sdk.transforms.splittabledofn.SplitResult<BatchRestrictionTracker.PartitionList>trySplit(double fractionOfRemainder)
-
-
-
Method Detail
-
tryClaim
public boolean tryClaim(Partition partition)
- Specified by:
tryClaimin classorg.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker<BatchRestrictionTracker.PartitionList,Partition>
-
currentRestriction
public BatchRestrictionTracker.PartitionList currentRestriction()
- Specified by:
currentRestrictionin classorg.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker<BatchRestrictionTracker.PartitionList,Partition>
-
trySplit
@Nullable public org.apache.beam.sdk.transforms.splittabledofn.SplitResult<BatchRestrictionTracker.PartitionList> trySplit(double fractionOfRemainder)
- Specified by:
trySplitin classorg.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker<BatchRestrictionTracker.PartitionList,Partition>
-
checkDone
public void checkDone() throws java.lang.IllegalStateException- Specified by:
checkDonein classorg.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker<BatchRestrictionTracker.PartitionList,Partition>- Throws:
java.lang.IllegalStateException
-
isBounded
public org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker.IsBounded isBounded()
- Specified by:
isBoundedin classorg.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker<BatchRestrictionTracker.PartitionList,Partition>
-
getProgress
public org.apache.beam.sdk.transforms.splittabledofn.RestrictionTracker.Progress getProgress()
-
-