Class WriteRequest

Direct Known Subclasses:
DeleteRequest, PutRequest

public abstract class WriteRequest extends DurableRequest
  • Method Details

    • getRowMetadata

      public String getRowMetadata()
      This method is **EXPERIMENTAL** and its behavior, signature, or even its existence may change without prior notice in future versions. Use with caution.

      Returns the row metadata to be used for this request.

      Returns:
      the row metadata, or null if not set
      Since:
      5.4.18
    • setRowMetadata

      public WriteRequest setRowMetadata(String rowMetadata)
      This method is **EXPERIMENTAL** and its behavior, signature, or even its existence may change without prior notice in future versions. Use with caution.

      Sets the row metadata to use for this request. This is an optional parameter.

      Row metadata is associated to a certain version of a row. Any subsequent write operation will use its own row metadata value. If not specified null will be used by default. NOTE that if you have previously written a record with metadata and a subsequent write does not supply metadata, the metadata associated with the row will be null. Therefore, if you wish to have metadata associated with every write operation, you must supply a valid JSON construct to this method.

      Parameters:
      rowMetadata - the row metadata, must be null or a valid JSON construct: object, array, string, number, true, false or null, otherwise an IllegalArgumentException is thrown.
      Returns:
      this
      Throws:
      IllegalArgumentException - if rowMetadata not null and invalid JSON construct
      Since:
      5.4.18