public class ProcTimeCommitTigger extends Object implements PartitionCommitTrigger
PARTITION_TIME, PROCESS_TIME| 构造器和说明 |
|---|
ProcTimeCommitTigger(boolean isRestored,
org.apache.flink.api.common.state.OperatorStateStore stateStore,
org.apache.flink.configuration.Configuration conf,
org.apache.flink.streaming.runtime.tasks.ProcessingTimeService procTimeService) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addPartition(String partition)
Add a pending partition.
|
List<String> |
committablePartitions(long checkpointId)
Get committable partitions, and cleanup useless watermarks and partitions.
|
List<String> |
endInput()
End input, return committable partitions and clear.
|
void |
snapshotState(long checkpointId,
long watermark)
Snapshot state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic void addPartition(String partition)
PartitionCommitTriggeraddPartition 在接口中 PartitionCommitTriggerpublic List<String> committablePartitions(long checkpointId)
PartitionCommitTriggercommittablePartitions 在接口中 PartitionCommitTriggerpublic void snapshotState(long checkpointId,
long watermark)
throws Exception
PartitionCommitTriggersnapshotState 在接口中 PartitionCommitTriggerExceptionpublic List<String> endInput()
PartitionCommitTriggerendInput 在接口中 PartitionCommitTriggerCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.