Class ProcTimeCommitTrigger
- java.lang.Object
-
- org.apache.flink.connector.file.table.stream.ProcTimeCommitTrigger
-
- All Implemented Interfaces:
PartitionCommitTrigger
@Internal public class ProcTimeCommitTrigger extends Object implements PartitionCommitTrigger
Partition commit trigger by creation time and processing time service. It'll commit the partition predicated to be committable byPartitionCommitPredicate
-
-
Constructor Summary
Constructors Constructor Description ProcTimeCommitTrigger(boolean isRestored, org.apache.flink.api.common.state.OperatorStateStore stateStore, org.apache.flink.streaming.runtime.tasks.ProcessingTimeService procTimeService, PartitionCommitPredicate partitionCommitPredicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPartition(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.voidsnapshotState(long checkpointId, long watermark)Snapshot state.
-
-
-
Constructor Detail
-
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 Detail
-
addPartition
public void addPartition(String partition)
Description copied from interface:PartitionCommitTriggerAdd a pending partition.- Specified by:
addPartitionin interfacePartitionCommitTrigger
-
committablePartitions
public List<String> committablePartitions(long checkpointId)
Description copied from interface:PartitionCommitTriggerGet committable partitions, and cleanup useless watermarks and partitions.- Specified by:
committablePartitionsin interfacePartitionCommitTrigger
-
snapshotState
public void snapshotState(long checkpointId, long watermark) throws ExceptionDescription copied from interface:PartitionCommitTriggerSnapshot state.- Specified by:
snapshotStatein interfacePartitionCommitTrigger- Throws:
Exception
-
endInput
public List<String> endInput()
Description copied from interface:PartitionCommitTriggerEnd input, return committable partitions and clear.- Specified by:
endInputin interfacePartitionCommitTrigger
-
-