Enum Operation

Object
Enum<Operation>
io.delta.kernel.Operation
All Implemented Interfaces:
Serializable, Comparable<Operation>

public enum Operation extends Enum<Operation>
An operation that can be performed on a Delta table.

An operation is tracked as the first line in commit info action inside the Delta Log It also shows up when DESCRIBE HISTORY on the table is executed.

  • Enum Constant Details

    • CREATE_TABLE

      public static final Operation CREATE_TABLE
      Recorded when the table is created.
    • WRITE

      public static final Operation WRITE
      Recorded during batch inserts.
    • STREAMING_UPDATE

      public static final Operation STREAMING_UPDATE
      Recorded during streaming inserts.
    • MANUAL_UPDATE

      public static final Operation MANUAL_UPDATE
      For any operation that doesn't fit the above categories.
  • Method Details

    • values

      public static Operation[] 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 Operation 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
    • getDescription

      public String getDescription()
      Returns the string that will be recorded in the transaction log.