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.
| 枚举常量和说明 |
|---|
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. it skipped buffers).
|
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. |
| 限定符和类型 | 方法和说明 |
|---|---|
static Buffer.DataType |
getDataType(AbstractEvent event,
boolean hasPriority) |
boolean |
hasPriority() |
boolean |
isBlockingUpstream() |
boolean |
isBuffer() |
boolean |
isEvent() |
boolean |
requiresAnnouncement() |
static Buffer.DataType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Buffer.DataType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public 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.