public class WriteMetadataEvent extends Object implements org.apache.flink.runtime.operators.coordination.OperatorEvent
| Modifier and Type | Class and Description |
|---|---|
static class |
WriteMetadataEvent.Builder
Builder for
WriteMetadataEvent. |
| Modifier and Type | Field and Description |
|---|---|
static String |
BOOTSTRAP_INSTANT |
| Constructor and Description |
|---|
WriteMetadataEvent() |
| Modifier and Type | Method and Description |
|---|---|
static WriteMetadataEvent.Builder |
builder()
Returns the builder for
WriteMetadataEvent. |
static WriteMetadataEvent |
emptyBootstrap(int taskId)
Creates empty bootstrap event for task
taskId. |
String |
getInstantTime() |
int |
getTaskID() |
List<WriteStatus> |
getWriteStatuses() |
boolean |
isBootstrap() |
boolean |
isEndInput() |
boolean |
isLastBatch() |
boolean |
isReady(String currentInstant)
Returns whether the event is ready to commit.
|
void |
mergeWith(WriteMetadataEvent other)
Merges this event with given
WriteMetadataEvent other. |
void |
setBootstrap(boolean bootstrap) |
void |
setEndInput(boolean endInput) |
void |
setInstantTime(String instantTime) |
void |
setLastBatch(boolean lastBatch) |
void |
setTaskID(int taskID) |
void |
setWriteStatuses(List<WriteStatus> writeStatuses) |
String |
toString() |
public static final String BOOTSTRAP_INSTANT
public static WriteMetadataEvent.Builder builder()
WriteMetadataEvent.public List<WriteStatus> getWriteStatuses()
public void setWriteStatuses(List<WriteStatus> writeStatuses)
public int getTaskID()
public void setTaskID(int taskID)
public String getInstantTime()
public void setInstantTime(String instantTime)
public boolean isEndInput()
public void setEndInput(boolean endInput)
public boolean isBootstrap()
public void setBootstrap(boolean bootstrap)
public boolean isLastBatch()
public void setLastBatch(boolean lastBatch)
public void mergeWith(WriteMetadataEvent other)
WriteMetadataEvent other.other - The event to be mergedpublic boolean isReady(String currentInstant)
public static WriteMetadataEvent emptyBootstrap(int taskId)
taskId.
The event indicates that the new instant can start directly, there is no old instant write statuses to recover.
Copyright © 2023 The Apache Software Foundation. All rights reserved.