Class RowMutationEntry
- All Implemented Interfaces:
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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic RowMutationEntrycreate(com.google.protobuf.ByteString key) Creates a new instance of the mutation builder.static RowMutationEntryCreates a new instance of the mutation builder.static RowMutationEntrycreateFromMutationUnsafe(com.google.protobuf.ByteString key, Mutation mutation) Creates a new instance from existing mutation.static RowMutationEntrycreateUnsafe(com.google.protobuf.ByteString key) Creates new instance of mutation builder which allows server timestamp for setCell operations.deleteCells(String familyName, com.google.protobuf.ByteString qualifier) Adds a mutation which deletes cells from the specified column.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.deleteCells(String familyName, String qualifier) Adds a mutation which deletes cells from the specified column.deleteFamily(String familyName) Adds a mutation which deletes all cells from the specified column family.Adds a mutation which deletes all cells from the containing row.Adds a mutation which sets the value of the specified cell.Adds a mutation which sets the value of the specified cell.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.setCell(String familyName, com.google.protobuf.ByteString qualifier, com.google.protobuf.ByteString value) Adds a mutation which sets the value of the specified cell.Adds a mutation which sets the value of the specified cell.Adds a mutation which sets the value of the specified cell.Adds a mutation which sets the value of the specified cell.Adds a mutation which sets the value of the specified cell.toProto()
-
Method Details
-
create
Creates a new instance of the mutation builder. -
create
Creates a new instance of the mutation builder. -
createFromMutationUnsafe
@BetaApi public static RowMutationEntry createFromMutationUnsafe(@Nonnull com.google.protobuf.ByteString key, @Nonnull Mutation mutation) Creates a new instance from existing mutation. -
createUnsafe
@InternalApi("For internal usage only") public static RowMutationEntry createUnsafe(@Nonnull com.google.protobuf.ByteString key) Creates new instance of mutation builder which allows server timestamp for setCell operations.NOTE: This functionality is intended for advanced usage.
- See Also:
-
setCell
public RowMutationEntry setCell(@Nonnull String familyName, @Nonnull String qualifier, @Nonnull String value) Adds a mutation which sets the value of the specified cell.This a convenience method that converts Strings to ByteStrings and uses microseconds since epoch as the timestamp.
- Specified by:
setCellin interfaceMutationApi<RowMutationEntry>
-
setCell
public RowMutationEntry setCell(@Nonnull String familyName, @Nonnull String qualifier, long timestamp, @Nonnull String value) Adds a mutation which sets the value of the specified cell.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`.
- Specified by:
setCellin interfaceMutationApi<RowMutationEntry>
-
setCell
public RowMutationEntry setCell(@Nonnull String familyName, @Nonnull com.google.protobuf.ByteString qualifier, @Nonnull com.google.protobuf.ByteString value) Adds a mutation which sets the value of the specified cell.Uses microseconds since epoch as the timestamp.
- Specified by:
setCellin interfaceMutationApi<RowMutationEntry>
-
setCell
public RowMutationEntry setCell(@Nonnull String familyName, @Nonnull com.google.protobuf.ByteString qualifier, long timestamp, @Nonnull com.google.protobuf.ByteString value) Adds a mutation which sets the value of the specified cell.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`.
- Specified by:
setCellin interfaceMutationApi<RowMutationEntry>
-
setCell
Description copied from interface:MutationApiAdds a mutation which sets the value of the specified cell.This a convenience method that converts Strings to ByteStrings and uses microseconds since epoch as the timestamp. Also it accepts long value.
- Specified by:
setCellin interfaceMutationApi<RowMutationEntry>
-
setCell
public RowMutationEntry setCell(@Nonnull String familyName, @Nonnull String qualifier, long timestamp, long value) Description copied from interface:MutationApiAdds a mutation which sets the value of the specified cell.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`.
- Specified by:
setCellin interfaceMutationApi<RowMutationEntry>
-
setCell
public RowMutationEntry setCell(@Nonnull String familyName, @Nonnull com.google.protobuf.ByteString qualifier, long value) Description copied from interface:MutationApiAdds a mutation which sets the value of the specified cell.Uses microseconds since epoch as the timestamp.
- Specified by:
setCellin interfaceMutationApi<RowMutationEntry>
-
setCell
public RowMutationEntry setCell(@Nonnull String familyName, @Nonnull com.google.protobuf.ByteString qualifier, long timestamp, long value) Description copied from interface:MutationApiAdds a mutation which sets the value of the specified cell.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`.
- Specified by:
setCellin interfaceMutationApi<RowMutationEntry>
-
deleteCells
Adds a mutation which deletes cells from the specified column.- Specified by:
deleteCellsin interfaceMutationApi<RowMutationEntry>
-
deleteCells
public RowMutationEntry deleteCells(@Nonnull String familyName, @Nonnull com.google.protobuf.ByteString qualifier) Adds a mutation which deletes cells from the specified column.- Specified by:
deleteCellsin interfaceMutationApi<RowMutationEntry>
-
deleteCells
public RowMutationEntry deleteCells(@Nonnull String familyName, @Nonnull com.google.protobuf.ByteString qualifier, @Nonnull Range.TimestampRange timestampRange) Adds a mutation which deletes cells from the specified column, restricted to a given timestamp range.- Specified by:
deleteCellsin interfaceMutationApi<RowMutationEntry>- Parameters:
familyName- The family name.qualifier- The qualifier.timestampRange- The timestamp range in microseconds.
-
deleteFamily
Adds a mutation which deletes all cells from the specified column family.- Specified by:
deleteFamilyin interfaceMutationApi<RowMutationEntry>
-
deleteRow
Adds a mutation which deletes all cells from the containing row.- Specified by:
deleteRowin interfaceMutationApi<RowMutationEntry>
-
toProto
-