Package io.delta.kernel
Enum Class Operation
- All Implemented Interfaces:
Serializable,Comparable<Operation>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRecorded when the table is created.For any operation that doesn't fit the above categories.Recorded during REPLACE operation (may also be considered an overwrite)Recorded during streaming inserts.Recorded during batch inserts. -
Method Summary
Modifier and TypeMethodDescriptionReturns the string that will be recorded in the transaction log.static OperationReturns the enum constant of this class with the specified name.static Operation[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
CREATE_TABLE
Recorded when the table is created. -
WRITE
Recorded during batch inserts. -
STREAMING_UPDATE
Recorded during streaming inserts. -
REPLACE_TABLE
Recorded during REPLACE operation (may also be considered an overwrite) -
MANUAL_UPDATE
For any operation that doesn't fit the above categories.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getDescription
Returns the string that will be recorded in the transaction log.
-