public static enum Buffer.DataType extends Enum<Buffer.DataType>
Buffer so that we can get the
information without deserializing the serialized data.
Notes: Currently, one byte is used to serialize the ordinal of Buffer.DataType in NettyMessage.BufferResponse, so the maximum number
of supported data types is 128.
| Enum Constant and Description |
|---|
ALIGNED_CHECKPOINT_BARRIER
ALIGNED_CHECKPOINT_BARRIER indicates that this buffer represents a serialized
checkpoint barrier of aligned exactly-once checkpoint mode. |
DATA_BUFFER
DATA_BUFFER indicates that this buffer represents a non-event data buffer. |
EVENT_BUFFER
EVENT_BUFFER indicates that this buffer represents serialized data of an event. |
NONE
NONE indicates that there is no buffer. |
PRIORITIZED_EVENT_BUFFER
Same as EVENT_BUFFER, but the event has been prioritized (e.g.
|
RECOVERY_COMPLETION
Indicates that this subpartition state is fully recovered (emitted).
|
TIMEOUTABLE_ALIGNED_CHECKPOINT_BARRIER
TIMEOUTABLE_ALIGNED_CHECKPOINT_BARRIER indicates that this buffer represents a
serialized checkpoint barrier of aligned exactly-once checkpoint mode, that can be
time-out'ed to an unaligned checkpoint barrier. |
| Modifier and Type | Method and Description |
|---|---|
static Buffer.DataType |
getDataType(AbstractEvent event,
boolean hasPriority) |
boolean |
hasPriority() |
boolean |
isBlockingUpstream() |
boolean |
isBuffer() |
boolean |
isEvent() |
boolean |
requiresAnnouncement() |
static Buffer.DataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Buffer.DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Buffer.DataType NONE
NONE indicates that there is no buffer.public static final Buffer.DataType DATA_BUFFER
DATA_BUFFER indicates that this buffer represents a non-event data buffer.public static final Buffer.DataType EVENT_BUFFER
EVENT_BUFFER indicates that this buffer represents serialized data of an event.
Note that this type can be further divided into more fine-grained event types like ALIGNED_CHECKPOINT_BARRIER and etc.public static final Buffer.DataType PRIORITIZED_EVENT_BUFFER
public static final Buffer.DataType ALIGNED_CHECKPOINT_BARRIER
ALIGNED_CHECKPOINT_BARRIER indicates that this buffer represents a serialized
checkpoint barrier of aligned exactly-once checkpoint mode.public static final Buffer.DataType TIMEOUTABLE_ALIGNED_CHECKPOINT_BARRIER
TIMEOUTABLE_ALIGNED_CHECKPOINT_BARRIER indicates that this buffer represents a
serialized checkpoint barrier of aligned exactly-once checkpoint mode, that can be
time-out'ed to an unaligned checkpoint barrier.public static final Buffer.DataType RECOVERY_COMPLETION
public static Buffer.DataType[] values()
for (Buffer.DataType c : Buffer.DataType.values()) System.out.println(c);
public static Buffer.DataType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isBuffer()
public boolean isEvent()
public boolean hasPriority()
public boolean isBlockingUpstream()
public boolean requiresAnnouncement()
public static Buffer.DataType getDataType(AbstractEvent event, boolean hasPriority)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.