public final class RowMutation extends Object implements MutationApi<RowMutation>, Serializable
BigtableDataClient.mutateRowAsync(RowMutation).| Modifier and Type | Method and Description |
|---|---|
static RowMutation |
create(String tableId,
ByteString key)
Creates a new instance of the mutation builder.
|
static RowMutation |
create(String tableId,
ByteString key,
Mutation mutation)
Creates new instance of mutation builder by wrapping existing set of row mutations.
|
static RowMutation |
create(String tableId,
String key)
Creates a new instance of the mutation builder.
|
static RowMutation |
create(String tableId,
String key,
Mutation mutation)
Creates new instance of mutation builder by wrapping existing set of row mutations.
|
RowMutation |
deleteCells(String familyName,
ByteString qualifier)
Adds a mutation which deletes cells from the specified column.
|
RowMutation |
deleteCells(String familyName,
ByteString qualifier,
Range.TimestampRange timestampRange)
Adds a mutation which deletes cells from the specified column, restricted to a given timestamp
range.
|
RowMutation |
deleteCells(String familyName,
String qualifier)
Adds a mutation which deletes cells from the specified column.
|
RowMutation |
deleteFamily(String familyName)
Adds a mutation which deletes all cells from the specified column family.
|
RowMutation |
deleteRow()
Adds a mutation which deletes all cells from the containing row.
|
RowMutation |
setCell(String familyName,
ByteString qualifier,
ByteString value)
Adds a mutation which sets the value of the specified cell.
|
RowMutation |
setCell(String familyName,
ByteString qualifier,
long value)
Adds a mutation which sets the value of the specified cell.
|
RowMutation |
setCell(String familyName,
ByteString qualifier,
long timestamp,
ByteString value)
Adds a mutation which sets the value of the specified cell.
|
RowMutation |
setCell(String familyName,
ByteString qualifier,
long timestamp,
long value)
Adds a mutation which sets the value of the specified cell.
|
RowMutation |
setCell(String familyName,
String qualifier,
long value)
Adds a mutation which sets the value of the specified cell.
|
RowMutation |
setCell(String familyName,
String qualifier,
long timestamp,
long value)
Adds a mutation which sets the value of the specified cell.
|
RowMutation |
setCell(String familyName,
String qualifier,
long timestamp,
String value)
Adds a mutation which sets the value of the specified cell.
|
RowMutation |
setCell(String familyName,
String qualifier,
String value)
Adds a mutation which sets the value of the specified cell.
|
MutateRowsRequest |
toBulkProto(com.google.cloud.bigtable.data.v2.internal.RequestContext requestContext)
Creates a single entry bulk
MutateRowsRequest, which will be
merged by the batching logic in the callable chain. |
MutateRowRequest |
toProto(com.google.cloud.bigtable.data.v2.internal.RequestContext requestContext) |
public static RowMutation create(@Nonnull String tableId, @Nonnull String key)
public static RowMutation create(@Nonnull String tableId, @Nonnull ByteString key)
public static RowMutation create(@Nonnull String tableId, @Nonnull String key, @Nonnull Mutation mutation)
Sample code:
Mutation mutation = Mutation.create()
.setCell("[FAMILY_NAME]", "[QUALIFIER]", [TIMESTAMP], "[VALUE]");
RowMutation rowMutation = RowMutation.create("[TABLE]", "[ROW_KEY]", mutation);
public static RowMutation create(@Nonnull String tableId, @Nonnull ByteString key, @Nonnull Mutation mutation)
Sample code:
Mutation mutation = Mutation.create()
.setCell("[FAMILY_NAME]", "[QUALIFIER]", [TIMESTAMP], "[VALUE]");
RowMutation rowMutation = RowMutation.create("[TABLE]", [BYTE_STRING_ROW_KEY], mutation);
public RowMutation setCell(@Nonnull String familyName, @Nonnull String qualifier, @Nonnull String value)
MutationApiThis a convenience method that converts Strings to ByteStrings and uses microseconds since epoch as the timestamp.
setCell in interface MutationApi<RowMutation>public RowMutation setCell(@Nonnull String familyName, @Nonnull String qualifier, long timestamp, @Nonnull String value)
MutationApiThis is a convenience override that converts Strings to ByteStrings.
setCell in interface MutationApi<RowMutation>public RowMutation setCell(@Nonnull String familyName, @Nonnull ByteString qualifier, @Nonnull ByteString value)
MutationApiUses microseconds since epoch as the timestamp.
setCell in interface MutationApi<RowMutation>public RowMutation setCell(@Nonnull String familyName, @Nonnull ByteString qualifier, long timestamp, @Nonnull ByteString value)
MutationApisetCell in interface MutationApi<RowMutation>public RowMutation 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<RowMutation>public RowMutation setCell(@Nonnull String familyName, @Nonnull String qualifier, long timestamp, long value)
MutationApiThis is a convenience override that converts Strings to ByteStrings.
setCell in interface MutationApi<RowMutation>public RowMutation setCell(@Nonnull String familyName, @Nonnull ByteString qualifier, long value)
MutationApiUses microseconds since epoch as the timestamp.
setCell in interface MutationApi<RowMutation>public RowMutation setCell(@Nonnull String familyName, @Nonnull ByteString qualifier, long timestamp, long value)
MutationApisetCell in interface MutationApi<RowMutation>public RowMutation deleteCells(@Nonnull String familyName, @Nonnull String qualifier)
MutationApideleteCells in interface MutationApi<RowMutation>public RowMutation deleteCells(@Nonnull String familyName, @Nonnull ByteString qualifier)
MutationApideleteCells in interface MutationApi<RowMutation>public RowMutation deleteCells(@Nonnull String familyName, @Nonnull ByteString qualifier, @Nonnull Range.TimestampRange timestampRange)
MutationApideleteCells in interface MutationApi<RowMutation>familyName - The family name.qualifier - The qualifier.timestampRange - The timestamp range in microseconds.public RowMutation deleteFamily(@Nonnull String familyName)
MutationApideleteFamily in interface MutationApi<RowMutation>public RowMutation deleteRow()
MutationApideleteRow in interface MutationApi<RowMutation>@InternalApi public MutateRowRequest toProto(com.google.cloud.bigtable.data.v2.internal.RequestContext requestContext)
@InternalApi public MutateRowsRequest toBulkProto(com.google.cloud.bigtable.data.v2.internal.RequestContext requestContext)
MutateRowsRequest, which will be
merged by the batching logic in the callable chain.Copyright © 2019 Google LLC. All rights reserved.