@Internal public class StreamingFileSinkHelper<IN> extends Object implements ProcessingTimeCallback
| 构造器和说明 |
|---|
StreamingFileSinkHelper(Buckets<IN,?> buckets,
boolean isRestored,
org.apache.flink.api.common.state.OperatorStateStore stateStore,
ProcessingTimeService procTimeService,
long bucketCheckInterval) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
commitUpToCheckpoint(long checkpointId) |
void |
onElement(IN value,
long currentProcessingTime,
Long elementTimestamp,
long currentWatermark) |
void |
onProcessingTime(long timestamp)
This method is invoked with the timestamp for which the trigger was scheduled.
|
void |
snapshotState(long checkpointId) |
public StreamingFileSinkHelper(Buckets<IN,?> buckets, boolean isRestored, org.apache.flink.api.common.state.OperatorStateStore stateStore, ProcessingTimeService procTimeService, long bucketCheckInterval) throws Exception
Exceptionpublic void commitUpToCheckpoint(long checkpointId)
throws Exception
Exceptionpublic void onProcessingTime(long timestamp)
throws Exception
ProcessingTimeCallbackIf the triggering is delayed for whatever reason (trigger timer was blocked, JVM stalled due to a garbage collection), the timestamp supplied to this function will still be the original timestamp for which the trigger was scheduled.
onProcessingTime 在接口中 ProcessingTimeCallbacktimestamp - The timestamp for which the trigger event was scheduled.Exceptionpublic void onElement(IN value, long currentProcessingTime, @Nullable Long elementTimestamp, long currentWatermark) throws Exception
Exceptionpublic void close()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.