Enum Class RowChangeParadigm
- All Implemented Interfaces:
Serializable
,Comparable<RowChangeParadigm>
,Constable
Different connectors have different ways of representing row updates,
imposed by the underlying storage systems. The Trino engine classifies
these different paradigms as elements of this RowChangeParadigm
enumeration, returned by
ConnectorMetadata.getRowChangeParadigm(io.trino.spi.connector.ConnectorSession, io.trino.spi.connector.ConnectorTableHandle)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA storage paradigm in which the connector can update individual columns of rows identified by a rowId.A paradigm that translates a changed row into a delete by rowId, and an insert of a new record, which will get a new rowId when the connector writes it out. -
Method Summary
Modifier and TypeMethodDescriptionstatic RowChangeParadigm
Returns the enum constant of this class with the specified name.static RowChangeParadigm[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHANGE_ONLY_UPDATED_COLUMNS
A storage paradigm in which the connector can update individual columns of rows identified by a rowId. The corresponding merge processor class isChangeOnlyUpdatedColumnsMergeProcessor
-
DELETE_ROW_AND_INSERT_ROW
A paradigm that translates a changed row into a delete by rowId, and an insert of a new record, which will get a new rowId when the connector writes it out. The corresponding merge processor class isDeleteAndInsertMergeProcessor
.
-
-
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
-