@Public public enum RowKind extends Enum<RowKind>
| 枚举常量和说明 |
|---|
DELETE
Deletion operation.
|
INSERT
Insertion operation.
|
UPDATE_AFTER
Update operation with new content of the updated row.
|
UPDATE_BEFORE
Update operation with the previous content of the updated row.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static RowKind |
fromByteValue(byte value)
Creates a
RowKind from the given byte value. |
static RowKind |
fromShortString(String value)
Creates a
RowKind from the given short string. |
boolean |
isAdd()
Is
INSERT or UPDATE_AFTER. |
boolean |
isRetract()
Is
UPDATE_BEFORE or DELETE. |
String |
shortString()
Returns a short string representation of this
RowKind. |
byte |
toByteValue()
Returns the byte value representation of this
RowKind. |
static RowKind |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static RowKind[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final RowKind INSERT
public static final RowKind UPDATE_BEFORE
This kind SHOULD occur together with UPDATE_AFTER for modelling an update that
needs to retract the previous row first. It is useful in cases of a non-idempotent update,
i.e., an update of a row that is not uniquely identifiable by a key.
public static final RowKind UPDATE_AFTER
This kind CAN occur together with UPDATE_BEFORE for modelling an update that
needs to retract the previous row first. OR it describes an idempotent update, i.e., an
update of a row that is uniquely identifiable by a key.
public static final RowKind DELETE
public static RowKind[] values()
for (RowKind c : RowKind.values()) System.out.println(c);
public static RowKind valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String shortString()
RowKind.
INSERT.
UPDATE_BEFORE.
UPDATE_AFTER.
DELETE.
public byte toByteValue()
RowKind. The byte value is used for
serialization and deserialization.
INSERT.
UPDATE_BEFORE.
UPDATE_AFTER.
DELETE.
public boolean isRetract()
UPDATE_BEFORE or DELETE.public boolean isAdd()
INSERT or UPDATE_AFTER.public static RowKind fromByteValue(byte value)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.