@Internal public class PartitionTimeCommitTrigger extends Object implements PartitionCommitTrigger
PartitionCommitPredicate
Compares watermark, and watermark is related to records and checkpoint, so we need store watermark information for checkpoint.
Constructor and Description |
---|
PartitionTimeCommitTrigger(boolean isRestored,
OperatorStateStore stateStore,
PartitionCommitPredicate partitionCommitPredicate) |
Modifier and Type | Method and Description |
---|---|
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, wait
create
public PartitionTimeCommitTrigger(boolean isRestored, OperatorStateStore stateStore, PartitionCommitPredicate partitionCommitPredicate) throws Exception
Exception
public void addPartition(String partition)
PartitionCommitTrigger
addPartition
in interface PartitionCommitTrigger
public List<String> committablePartitions(long checkpointId)
PartitionCommitTrigger
committablePartitions
in interface PartitionCommitTrigger
public void snapshotState(long checkpointId, long watermark) throws Exception
PartitionCommitTrigger
snapshotState
in interface PartitionCommitTrigger
Exception
public List<String> endInput()
PartitionCommitTrigger
endInput
in interface PartitionCommitTrigger
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.