Class Mutations (2.5.0)

public static class Mutations

Static class with convenience methods for creating various kinds of Mutation instances.

Inheritance

Object > Mutations

Namespace

Google.Cloud.Bigtable.V2

Assembly

Google.Cloud.Bigtable.V2.dll

Methods

CreateEntry(BigtableByteString, Mutation[])

public static MutateRowsRequest.Types.Entry CreateEntry(BigtableByteString rowKey, params Mutation[] mutations)

Creates a MutateRowsRequest.Types.Entry to use with MutateRows requests. Each Entry is an atomic, ordered set of mutations for a particular row.

Parameters
NameDescription
rowKeyBigtableByteString

The key of the row to which the mutations should be applied. Must not be empty.

mutationsMutation[]

Changes to be atomically applied to the specified row. Mutations are applied in order, meaning that earlier mutations can be masked by later ones. You must specify at least one mutation. Must not be null, or contain null elements.

Returns
TypeDescription
MutateRowsRequest.Types.Entry

The MutateRows entry describing mutations for a single row.

Remarks

Note that string is implicitly convertible to BigtableByteString, so rowKey can be specified using a string as well and its UTF-8 representations will be used.

See Also

DeleteFromColumn(String, BigtableByteString, BigtableVersionRange)

public static Mutation DeleteFromColumn(string familyName, BigtableByteString columnQualifier, BigtableVersionRange versionRange = null)

Creates a Mutation which deletes cells from the specified column, optionally restricting the deletions to a given version range.

Parameters
NameDescription
familyNameString

The name of the family from which cells should be deleted. Must match [-_.a-zA-Z0-9]+

columnQualifierBigtableByteString

The qualifier of the column from which cells should be deleted. Can be any byte string, including the empty string.

versionRangeBigtableVersionRange

[Optional] The range of versions within which cells should be deleted. If unspecified, all versions will be deleted.

Returns
TypeDescription
Mutation

The created Mutation instance.

Remarks

Note that string is implicitly convertible to BigtableByteString, so columnQualifier can be specified using a string as well and its UTF-8 representations will be used.

DeleteFromFamily(String)

public static Mutation DeleteFromFamily(string familyName)

Creates a Mutation which deletes all cells from the specified column family.

Parameter
NameDescription
familyNameString

The name of the family from which cells should be deleted. Must match [-_.a-zA-Z0-9]+

Returns
TypeDescription
Mutation

The created Mutation instance.

DeleteFromRow()

public static Mutation DeleteFromRow()

Creates a Mutation which deletes all cells from the containing row.

Returns
TypeDescription
Mutation

The created Mutation instance.

SetCell(String, BigtableByteString, BigtableByteString, Nullable<BigtableVersion>)

public static Mutation SetCell(string familyName, BigtableByteString columnQualifier, BigtableByteString value, BigtableVersion? version = default(BigtableVersion? ))

Creates a Mutation which sets the value of the specified cell.

Parameters
NameDescription
familyNameString

The name of the family into which new data should be written. Must match [-_.a-zA-Z0-9]+

columnQualifierBigtableByteString

The qualifier of the column into which new data should be written. Can be any byte string, including the empty string.

valueBigtableByteString

The value to be written into the specified cell.

versionNullable<BigtableVersion>

[Optional] The version of the cell into which new data should be written. If unspecified, the version will be initialized from the current UTC time.

Returns
TypeDescription
Mutation

The created Mutation instance.

Remarks

Note that string is implicitly convertible to BigtableByteString, so columnQualifier or value can be specified using a string as well and its UTF-8 representations will be used.