Class ProcTimeCommitTrigger
java.lang.Object
org.apache.flink.connector.file.table.stream.ProcTimeCommitTrigger
- All Implemented Interfaces:
PartitionCommitTrigger
Partition commit trigger by creation time and processing time service. It'll commit the partition
predicated to be committable by
PartitionCommitPredicate-
Constructor Summary
ConstructorsConstructorDescriptionProcTimeCommitTrigger(boolean isRestored, org.apache.flink.api.common.state.OperatorStateStore stateStore, org.apache.flink.streaming.runtime.tasks.ProcessingTimeService procTimeService, PartitionCommitPredicate partitionCommitPredicate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPartition(String partition) Add a pending partition.committablePartitions(long checkpointId) Get committable partitions, and cleanup useless watermarks and partitions.endInput()End input, return committable partitions and clear.voidsnapshotState(long checkpointId, long watermark) Snapshot state.
-
Constructor Details
-
ProcTimeCommitTrigger
public ProcTimeCommitTrigger(boolean isRestored, org.apache.flink.api.common.state.OperatorStateStore stateStore, org.apache.flink.streaming.runtime.tasks.ProcessingTimeService procTimeService, PartitionCommitPredicate partitionCommitPredicate) throws Exception - Throws:
Exception
-
-
Method Details
-
addPartition
Description copied from interface:PartitionCommitTriggerAdd a pending partition.- Specified by:
addPartitionin interfacePartitionCommitTrigger
-
committablePartitions
Description copied from interface:PartitionCommitTriggerGet committable partitions, and cleanup useless watermarks and partitions.- Specified by:
committablePartitionsin interfacePartitionCommitTrigger
-
snapshotState
Description copied from interface:PartitionCommitTriggerSnapshot state.- Specified by:
snapshotStatein interfacePartitionCommitTrigger- Throws:
Exception
-
endInput
Description copied from interface:PartitionCommitTriggerEnd input, return committable partitions and clear.- Specified by:
endInputin interfacePartitionCommitTrigger
-