Enum RowKind

java.lang.Object
java.lang.Enum<RowKind>
org.apache.flink.types.RowKind
All Implemented Interfaces:
Serializable, Comparable<RowKind>, java.lang.constant.Constable

@PublicEvolving public enum RowKind extends Enum<RowKind>
Lists all kinds of changes that a row can describe in a changelog.
  • Enum Constant Details

    • INSERT

      public static final RowKind INSERT
      Insertion operation.
    • UPDATE_BEFORE

      public static final RowKind UPDATE_BEFORE
      Update operation with the previous content of the updated row.

      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.

    • UPDATE_AFTER

      public static final RowKind UPDATE_AFTER
      Update operation with new content of the updated row.

      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.

    • DELETE

      public static final RowKind DELETE
      Deletion operation.
  • Method Details

    • values

      public static RowKind[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static RowKind valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • shortString

      public String shortString()
      Returns a short string representation of this RowKind.

    • toByteValue

      public byte toByteValue()
      Returns the byte value representation of this RowKind. The byte value is used for serialization and deserialization.

    • fromByteValue

      public static RowKind fromByteValue(byte value)
      Creates a RowKind from the given byte value. Each RowKind has a byte value representation.
      See Also: