@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>>| 限定符和类型 | 方法和说明 |
|---|---|
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. its size.
|
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 在接口中 RollingPolicy<IN,BucketID>shouldRollOnEvent 在类中 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 在接口中 RollingPolicy<IN,BucketID>shouldRollOnProcessingTime 在类中 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–2021 The Apache Software Foundation. All rights reserved.