Class ReadModifyWriteRow

java.lang.Object
com.google.cloud.bigtable.data.v2.models.ReadModifyWriteRow
All Implemented Interfaces:
Serializable

public final class ReadModifyWriteRow extends Object implements Serializable
Wraps a ReadModifyWriteRowRequest.
See Also:
  • Method Details

    • create

      public static ReadModifyWriteRow create(@Nonnull String tableId, @Nonnull String key)
    • create

      public static ReadModifyWriteRow create(@Nonnull String tableId, @Nonnull com.google.protobuf.ByteString key)
    • append

      public ReadModifyWriteRow append(@Nonnull String familyName, @Nonnull String qualifier, @Nonnull String value)
      Appends the value to the existing value of the cell. If the targeted cell is unset, it will be treated as containing the empty string.
    • append

      public ReadModifyWriteRow append(@Nonnull String familyName, @Nonnull com.google.protobuf.ByteString qualifier, @Nonnull com.google.protobuf.ByteString value)
      Appends the value to the existing value of the cell. If the targeted cell is unset, it will be treated as containing the empty string.
    • increment

      public ReadModifyWriteRow increment(@Nonnull String familyName, @Nonnull String qualifier, long amount)
      Adds `amount` be added to the existing value. If the targeted cell is unset, it will be treated as containing a zero. Otherwise, the targeted cell must contain an 8-byte value (interpreted as a 64-bit big-endian signed integer), or the entire request will fail.
    • increment

      public ReadModifyWriteRow increment(@Nonnull String familyName, @Nonnull com.google.protobuf.ByteString qualifier, long amount)
      Adds `amount` be added to the existing value. If the targeted cell is unset, it will be treated as containing a zero. Otherwise, the targeted cell must contain an 8-byte value (interpreted as a 64-bit big-endian signed integer), or the entire request will fail.
    • toProto

      @InternalApi public com.google.bigtable.v2.ReadModifyWriteRowRequest toProto(com.google.cloud.bigtable.data.v2.internal.RequestContext requestContext)
    • fromProto

      @BetaApi public static ReadModifyWriteRow fromProto(@Nonnull com.google.bigtable.v2.ReadModifyWriteRowRequest request)
      Wraps the protobuf ReadModifyWriteRowRequest.

      WARNING: Please note that the table_name will be overwritten by the configuration in the BigtableDataClient.