Enum Class RowChangeParadigm

java.lang.Object
java.lang.Enum<RowChangeParadigm>
io.trino.spi.connector.RowChangeParadigm
All Implemented Interfaces:
Serializable, Comparable<RowChangeParadigm>, Constable

public enum RowChangeParadigm extends Enum<RowChangeParadigm>
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)
  • Enum Constant Details

    • CHANGE_ONLY_UPDATED_COLUMNS

      public static final RowChangeParadigm 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 is ChangeOnlyUpdatedColumnsMergeProcessor
    • DELETE_ROW_AND_INSERT_ROW

      public static final RowChangeParadigm 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 is DeleteAndInsertMergeProcessor.
  • Method Details

    • values

      public static RowChangeParadigm[] 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

      public static RowChangeParadigm valueOf(String name)
      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 name
      NullPointerException - if the argument is null