public class RowMutationEntry extends Object implements MutationApi<RowMutationEntry>, Serializable
BigtableDataClient.newBulkMutationBatcher(String).
Note: The changes in the mutation will be applied atomically but the ordering between different RowMutationEntry instances is not guaranteed.
| Modifier and Type | Method and Description |
|---|---|
RowMutationEntry |
addToCell(String familyName,
Value qualifier,
Value timestamp,
Value input)
Adds a
Value to an aggregate cell. |
static RowMutationEntry |
create(com.google.protobuf.ByteString key)
Creates a new instance of the mutation builder.
|
static RowMutationEntry |
create(String key)
Creates a new instance of the mutation builder.
|
static RowMutationEntry |
createFromMutationUnsafe(com.google.protobuf.ByteString key,
Mutation mutation)
Creates a new instance from existing mutation.
|
static RowMutationEntry |
createUnsafe(com.google.protobuf.ByteString key)
Creates new instance of mutation builder which allows server timestamp for setCell operations.
|
RowMutationEntry |
deleteCells(String familyName,
com.google.protobuf.ByteString qualifier)
Adds a mutation which deletes cells from the specified column.
|
RowMutationEntry |
deleteCells(String familyName,
com.google.protobuf.ByteString qualifier,
Range.TimestampRange timestampRange)
Adds a mutation which deletes cells from the specified column, restricted to a given timestamp
range.
|
RowMutationEntry |
deleteCells(String familyName,
String qualifier)
Adds a mutation which deletes cells from the specified column.
|
RowMutationEntry |
deleteFamily(String familyName)
Adds a mutation which deletes all cells from the specified column family.
|
RowMutationEntry |
deleteRow()
Adds a mutation which deletes all cells from the containing row.
|
RowMutationEntry |
mergeToCell(String familyName,
Value qualifier,
Value timestamp,
Value input)
Merges a
Value accumulator to an aggregate cell. |
RowMutationEntry |
setCell(String familyName,
com.google.protobuf.ByteString qualifier,
com.google.protobuf.ByteString value)
Adds a mutation which sets the value of the specified cell.
|
RowMutationEntry |
setCell(String familyName,
com.google.protobuf.ByteString qualifier,
long value)
Adds a mutation which sets the value of the specified cell.
|
RowMutationEntry |
setCell(String familyName,
com.google.protobuf.ByteString qualifier,
long timestamp,
com.google.protobuf.ByteString value)
Adds a mutation which sets the value of the specified cell.
|
RowMutationEntry |
setCell(String familyName,
com.google.protobuf.ByteString qualifier,
long timestamp,
long value)
Adds a mutation which sets the value of the specified cell.
|
RowMutationEntry |
setCell(String familyName,
String qualifier,
long value)
Adds a mutation which sets the value of the specified cell.
|
RowMutationEntry |
setCell(String familyName,
String qualifier,
long timestamp,
long value)
Adds a mutation which sets the value of the specified cell.
|
RowMutationEntry |
setCell(String familyName,
String qualifier,
long timestamp,
String value)
Adds a mutation which sets the value of the specified cell.
|
RowMutationEntry |
setCell(String familyName,
String qualifier,
String value)
Adds a mutation which sets the value of the specified cell.
|
MutateRowsRequest.Entry |
toProto() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddToCell, addToCell, mergeToCell, mergeToCellpublic static RowMutationEntry create(@Nonnull String key)
public static RowMutationEntry create(@Nonnull com.google.protobuf.ByteString key)
@BetaApi public static RowMutationEntry createFromMutationUnsafe(@Nonnull com.google.protobuf.ByteString key, @Nonnull Mutation mutation)
@InternalApi(value="For internal usage only") public static RowMutationEntry createUnsafe(@Nonnull com.google.protobuf.ByteString key)
NOTE: This functionality is intended for advanced usage.
for more explanation.public RowMutationEntry setCell(@Nonnull String familyName, @Nonnull String qualifier, @Nonnull String value)
This a convenience method that converts Strings to ByteStrings and uses microseconds since epoch as the timestamp.
setCell in interface MutationApi<RowMutationEntry>public RowMutationEntry setCell(@Nonnull String familyName, @Nonnull String qualifier, long timestamp, @Nonnull String value)
This is a convenience override that converts Strings to ByteStrings.
Note: The timestamp values are in microseconds but must match the granularity of the table(defaults to `MILLIS`). Therefore, the given value must be a multiple of 1000 (millisecond granularity). For example: `1571902339435000`.
setCell in interface MutationApi<RowMutationEntry>public RowMutationEntry setCell(@Nonnull String familyName, @Nonnull com.google.protobuf.ByteString qualifier, @Nonnull com.google.protobuf.ByteString value)
Uses microseconds since epoch as the timestamp.
setCell in interface MutationApi<RowMutationEntry>public RowMutationEntry setCell(@Nonnull String familyName, @Nonnull com.google.protobuf.ByteString qualifier, long timestamp, @Nonnull com.google.protobuf.ByteString value)
Note: The timestamp values are in microseconds but must match the granularity of the table(defaults to `MILLIS`). Therefore, the given value must be a multiple of 1000 (millisecond granularity). For example: `1571902339435000`.
setCell in interface MutationApi<RowMutationEntry>public RowMutationEntry setCell(@Nonnull String familyName, @Nonnull String qualifier, long value)
MutationApiThis a convenience method that converts Strings to ByteStrings and uses microseconds since epoch as the timestamp. Also it accepts long value.
setCell in interface MutationApi<RowMutationEntry>public RowMutationEntry setCell(@Nonnull String familyName, @Nonnull String qualifier, long timestamp, long value)
MutationApiThis is a convenience override that converts Strings to ByteStrings.
Note: The timestamp values are in microseconds but must match the granularity of the table(defaults to `MILLIS`). Therefore, the given value must be a multiple of 1000 (millisecond granularity). For example: `1571902339435000`.
setCell in interface MutationApi<RowMutationEntry>public RowMutationEntry setCell(@Nonnull String familyName, @Nonnull com.google.protobuf.ByteString qualifier, long value)
MutationApiUses microseconds since epoch as the timestamp.
setCell in interface MutationApi<RowMutationEntry>public RowMutationEntry setCell(@Nonnull String familyName, @Nonnull com.google.protobuf.ByteString qualifier, long timestamp, long value)
MutationApiNote: The timestamp values are in microseconds but must match the granularity of the table(defaults to `MILLIS`). Therefore, the given value must be a multiple of 1000 (millisecond granularity). For example: `1571902339435000`.
setCell in interface MutationApi<RowMutationEntry>public RowMutationEntry deleteCells(@Nonnull String familyName, @Nonnull String qualifier)
deleteCells in interface MutationApi<RowMutationEntry>public RowMutationEntry deleteCells(@Nonnull String familyName, @Nonnull com.google.protobuf.ByteString qualifier)
deleteCells in interface MutationApi<RowMutationEntry>public RowMutationEntry deleteCells(@Nonnull String familyName, @Nonnull com.google.protobuf.ByteString qualifier, @Nonnull Range.TimestampRange timestampRange)
deleteCells in interface MutationApi<RowMutationEntry>familyName - The family name.qualifier - The qualifier.timestampRange - The timestamp range in microseconds.public RowMutationEntry deleteFamily(@Nonnull String familyName)
deleteFamily in interface MutationApi<RowMutationEntry>public RowMutationEntry deleteRow()
deleteRow in interface MutationApi<RowMutationEntry>public RowMutationEntry addToCell(@Nonnull String familyName, @Nonnull Value qualifier, @Nonnull Value timestamp, @Nonnull Value input)
MutationApiValue to an aggregate cell. The column family must be an aggregate family and
have an input type matching the type of Value or this mutation will be rejected.
Note: The timestamp values are in microseconds but must match the granularity of the table(defaults to `MILLIS`). Therefore, the given value must be a multiple of 1000 (millisecond granularity). For example: `1571902339435000`.
addToCell in interface MutationApi<RowMutationEntry>public RowMutationEntry mergeToCell(@Nonnull String familyName, @Nonnull Value qualifier, @Nonnull Value timestamp, @Nonnull Value input)
MutationApiValue accumulator to an aggregate cell. The column family must be an aggregate
family or this mutation will be rejected.
Note: The timestamp values are in microseconds but must match the granularity of the table(defaults to `MILLIS`). Therefore, the given value must be a multiple of 1000 (millisecond granularity). For example: `1571902339435000`.
mergeToCell in interface MutationApi<RowMutationEntry>@InternalApi public MutateRowsRequest.Entry toProto()
Copyright © 2026 Google LLC. All rights reserved.