Class PartitionTimeCommitTrigger
java.lang.Object
org.apache.flink.connector.file.table.stream.PartitionTimeCommitTrigger
- All Implemented Interfaces:
PartitionCommitTrigger
Partition commit trigger by partition time and watermark. It'll commit the partition predicated
to be committable by
PartitionCommitPredicate
Compares watermark, and watermark is related to records and checkpoint, so we need store watermark information for checkpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionTimeCommitTrigger(boolean isRestored, org.apache.flink.api.common.state.OperatorStateStore stateStore, 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
-
PartitionTimeCommitTrigger
public PartitionTimeCommitTrigger(boolean isRestored, org.apache.flink.api.common.state.OperatorStateStore stateStore, 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
-