@PublicEvolving public enum RowKind extends Enum<RowKind>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
static RowKind |
fromByteValue(byte value)
Creates a
RowKind from the given byte value. |
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)
Returns the enum constant of this type with the specified name.
|
static RowKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- 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 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 static RowKind fromByteValue(byte value)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.