public class CheckpointBarrier extends RuntimeEvent
Once an operator has received a checkpoint barrier from all its input channels, it knows that a certain checkpoint is complete. It can trigger the operator specific checkpoint behavior and broadcast the barrier to downstream operators.
Depending on the semantic guarantees, may hold off post-checkpoint data until the checkpoint is complete (exactly once)
The checkpoint barrier IDs are strictly monotonous increasing.
Constructor and Description |
---|
CheckpointBarrier() |
CheckpointBarrier(long id,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
long |
getId() |
long |
getTimestamp() |
int |
hashCode() |
void |
read(DataInputView in)
Reads the object's internal data from the given data input view.
|
String |
toString() |
void |
write(DataOutputView out)
Writes the object's internal data to the given data output view.
|
public CheckpointBarrier()
public CheckpointBarrier(long id, long timestamp)
public long getId()
public long getTimestamp()
public void write(DataOutputView out) throws IOException
IOReadableWritable
out
- the output view to receive the data.IOException
- thrown if any error occurs while writing to the output streampublic void read(DataInputView in) throws IOException
IOReadableWritable
in
- the input view to read the data fromIOException
- thrown if any error occurs while reading from the input streamCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.