Class TableUpdateOperation

java.lang.Object
com.datastax.astra.client.tables.definition.rows.Row
com.datastax.astra.client.tables.commands.TableUpdateOperation
All Implemented Interfaces:
Serializable

public class TableUpdateOperation extends Row
Encore the update document
See Also:
  • Constructor Details

    • TableUpdateOperation

      public TableUpdateOperation()
      Default constructor.
    • TableUpdateOperation

      public TableUpdateOperation(String json)
      Default constructor.
      Parameters:
      json - filter expression as JSON
    • TableUpdateOperation

      public TableUpdateOperation(Map<String,Object> obj)
      Default constructor.
      Parameters:
      obj - filter expression as JSON
  • Method Details

    • unset

      public TableUpdateOperation unset(String... fields)
      Builder pattern
      Parameters:
      fields - fields name
      Returns:
      reference to self
    • unset

      public TableUpdateOperation unset(String field, Object value)
      Builder pattern, unset a field
      Parameters:
      field - field name
      value - filed value
      Returns:
      reference to self
    • set

      public TableUpdateOperation set(String key, Object value)
      Builder pattern, set a field value
      Parameters:
      key - field name
      value - filed value
      Returns:
      reference to self
    • set

      public TableUpdateOperation set(Row row)
      Set all elements of a row
      Parameters:
      row - ` new value for row
      Returns:
      reference to self