@PublicEvolving public final class OnCheckpointRollingPolicy<IN,BucketID> extends CheckpointRollingPolicy<IN,BucketID>
RollingPolicy which rolls (ONLY) on every checkpoint.CheckpointRollingPolicy.PolicyBuilder<IN,BucketID,T extends CheckpointRollingPolicy.PolicyBuilder<IN,BucketID,T>>| Modifier and Type | Method and Description |
|---|---|
static <IN,BucketID> |
build() |
boolean |
shouldRollOnEvent(PartFileInfo<BucketID> partFileState,
IN element)
Determines if the in-progress part file for a bucket should roll based on its current state, e.g.
|
boolean |
shouldRollOnProcessingTime(PartFileInfo<BucketID> partFileState,
long currentTime)
Determines if the in-progress part file for a bucket should roll based on a time condition.
|
shouldRollOnCheckpointpublic boolean shouldRollOnEvent(PartFileInfo<BucketID> partFileState, IN element)
RollingPolicyshouldRollOnEvent in interface RollingPolicy<IN,BucketID>shouldRollOnEvent in class CheckpointRollingPolicy<IN,BucketID>partFileState - the state of the currently open part file of the bucket.element - the element being processed.True if the part file should roll, false otherwise.public boolean shouldRollOnProcessingTime(PartFileInfo<BucketID> partFileState, long currentTime)
RollingPolicyshouldRollOnProcessingTime in interface RollingPolicy<IN,BucketID>shouldRollOnProcessingTime in class CheckpointRollingPolicy<IN,BucketID>partFileState - the state of the currently open part file of the bucket.currentTime - the current processing time.True if the part file should roll, false otherwise.public static <IN,BucketID> OnCheckpointRollingPolicy<IN,BucketID> build()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.