public abstract class BigtableClientReference documentation and code samples for the Google Bigtable v2 API class BigtableClient.
BigtableServiceApi client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Bigtable.V2Assembly
Google.Cloud.Bigtable.V2.dll
Remarks
Service for reading from and writing to existing Bigtable tables.
Properties
AppProfileId
public virtual string AppProfileId { get; }Gets the value which specifies routing for replication. If null or empty, the "default" application profile will be used by the server.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Methods
CheckAndMutateRow(TableName, BigtableByteString, RowFilter, params Mutation[])
public virtual CheckAndMutateRowResponse CheckAndMutateRow(TableName tableName, BigtableByteString rowKey, RowFilter predicateFilter, params Mutation[] trueMutations)Mutates a row atomically based on the output of a predicate Reader filter.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table to which the conditional mutation should be applied. Must not be null. |
rowKey |
BigtableByteStringThe key of the row to which the conditional mutation should be applied. Must not be empty. |
predicateFilter |
RowFilterThe filter to be applied to the contents of the specified row. Depending
on whether or not any results are yielded, |
trueMutations |
MutationChanges to be atomically applied to the specified row if |
| Returns | |
|---|---|
| Type | Description |
CheckAndMutateRowResponse |
The response from trying to mutate the row. |
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.
This method simply delegates to CheckAndMutateRow(CheckAndMutateRowRequest, CallSettings).
CheckAndMutateRow(TableName, BigtableByteString, RowFilter, IEnumerable<Mutation>, IEnumerable<Mutation>, CallSettings)
public virtual CheckAndMutateRowResponse CheckAndMutateRow(TableName tableName, BigtableByteString rowKey, RowFilter predicateFilter, IEnumerable<Mutation> trueMutations, IEnumerable<Mutation> falseMutations, CallSettings callSettings = null)Mutates a row atomically based on the output of a predicate Reader filter.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table to which the conditional mutation should be applied. Must not be null. |
rowKey |
BigtableByteStringThe key of the row to which the conditional mutation should be applied. Must not be empty. |
predicateFilter |
RowFilterThe filter to be applied to the contents of the specified row. Depending
on whether or not any results are yielded, either |
trueMutations |
IEnumerableMutationChanges to be atomically applied to the specified row if |
falseMutations |
IEnumerableMutationChanges to be atomically applied to the specified row if |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
CheckAndMutateRowResponse |
The response from trying to mutate the row. |
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.
This method simply delegates to CheckAndMutateRow(CheckAndMutateRowRequest, CallSettings).
CheckAndMutateRow(CheckAndMutateRowRequest, CallSettings)
public virtual CheckAndMutateRowResponse CheckAndMutateRow(CheckAndMutateRowRequest request, CallSettings callSettings = null)Mutates a row atomically based on the output of a predicate Reader filter.
| Parameters | |
|---|---|
| Name | Description |
request |
CheckAndMutateRowRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
CheckAndMutateRowResponse |
The RPC response. |
CheckAndMutateRowAsync(TableName, BigtableByteString, RowFilter, params Mutation[])
public virtual Task<CheckAndMutateRowResponse> CheckAndMutateRowAsync(TableName tableName, BigtableByteString rowKey, RowFilter predicateFilter, params Mutation[] trueMutations)Asynchronously mutates a row atomically based on the output of a predicate Reader filter.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table to which the conditional mutation should be applied. Must not be null. |
rowKey |
BigtableByteStringThe key of the row to which the conditional mutation should be applied. Must not be empty. |
predicateFilter |
RowFilterThe filter to be applied to the contents of the specified row. Depending
on whether or not any results are yielded, |
trueMutations |
MutationChanges to be atomically applied to the specified row if |
| Returns | |
|---|---|
| Type | Description |
TaskCheckAndMutateRowResponse |
The response from trying to mutate the row. |
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.
This method simply delegates to CheckAndMutateRowAsync(CheckAndMutateRowRequest, CallSettings).
CheckAndMutateRowResponse response = await client.CheckAndMutateRowAsync(
new TableName(projectId, instanceId, tableId),
"user12345",
// If the latest value in the "Address:Country" column is "USA"...
RowFilters.Chain(
RowFilters.FamilyNameExact("Address"),
RowFilters.ColumnQualifierExact("Country"),
RowFilters.CellsPerColumnLimit(1),
RowFilters.ValueExact("USA")),
// ...remove all previous Level 1 scores and set the value to 0.
Mutations.DeleteFromColumn("Score", "Level 1"),
Mutations.SetCell("Score", "Level 1", 0, new BigtableVersion(1)));
if (response.PredicateMatched)
{
Console.WriteLine("The level 1 scores have been reset");
}
else
{
Console.WriteLine("The level 1 scores were not modified.");
}
CheckAndMutateRowAsync(TableName, BigtableByteString, RowFilter, IEnumerable<Mutation>, IEnumerable<Mutation>, CallSettings)
public virtual Task<CheckAndMutateRowResponse> CheckAndMutateRowAsync(TableName tableName, BigtableByteString rowKey, RowFilter predicateFilter, IEnumerable<Mutation> trueMutations, IEnumerable<Mutation> falseMutations, CallSettings callSettings = null)Asynchronously mutates a row atomically based on the output of a predicate Reader filter.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table to which the conditional mutation should be applied. Must not be null. |
rowKey |
BigtableByteStringThe key of the row to which the conditional mutation should be applied. Must not be empty. |
predicateFilter |
RowFilterThe filter to be applied to the contents of the specified row. Depending
on whether or not any results are yielded, either |
trueMutations |
IEnumerableMutationChanges to be atomically applied to the specified row if |
falseMutations |
IEnumerableMutationChanges to be atomically applied to the specified row if |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCheckAndMutateRowResponse |
The response from trying to mutate the row. |
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.
This method simply delegates to CheckAndMutateRowAsync(CheckAndMutateRowRequest, CallSettings).
CheckAndMutateRowAsync(CheckAndMutateRowRequest, CallSettings)
public virtual Task<CheckAndMutateRowResponse> CheckAndMutateRowAsync(CheckAndMutateRowRequest request, CallSettings callSettings = null)Mutates a row atomically based on the output of a predicate Reader filter.
| Parameters | |
|---|---|
| Name | Description |
request |
CheckAndMutateRowRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCheckAndMutateRowResponse |
A Task containing the RPC response. |
CheckAndMutateRowAsync(CheckAndMutateRowRequest, CancellationToken)
public virtual Task<CheckAndMutateRowResponse> CheckAndMutateRowAsync(CheckAndMutateRowRequest request, CancellationToken cancellationToken)Mutates a row atomically based on the output of a predicate Reader filter.
| Parameters | |
|---|---|
| Name | Description |
request |
CheckAndMutateRowRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskCheckAndMutateRowResponse |
A Task containing the RPC response. |
Create()
public static BigtableClient Create()Synchronously creates a BigtableClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use BigtableClientBuilder.
| Returns | |
|---|---|
| Type | Description |
BigtableClient |
The created BigtableServiceApiClient. |
Create(BigtableServiceApiClient)
public static BigtableClient Create(BigtableServiceApiClient client)Synchronously creates a BigtableClient from a pre-existing API client.
| Parameter | |
|---|---|
| Name | Description |
client |
BigtableServiceApiClientThe BigtableServiceApiClient to use in the BigtableClient. Must not be null. |
| Returns | |
|---|---|
| Type | Description |
BigtableClient |
The created BigtableClient. |
CreateAsync()
public static Task<BigtableClient> CreateAsync()Asynchronously creates a BigtableClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use BigtableClientBuilder.
| Returns | |
|---|---|
| Type | Description |
TaskBigtableClient |
The created BigtableServiceApiClient. |
ExecuteQuery(InstanceName, string, CallSettings)
[Obsolete]
public virtual BigtableServiceApiClient.ExecuteQueryStream ExecuteQuery(InstanceName instanceName, string query, CallSettings callSettings = null)Executes a SQL query against a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
instanceName |
InstanceNameRequired. The unique name of the instance against which the query should be
executed.
Values are of the form |
query |
stringRequired. The query string. Exactly one of |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientExecuteQueryStream |
The server stream. |
ExecuteQuery(InstanceName, string, string, CallSettings)
[Obsolete]
public virtual BigtableServiceApiClient.ExecuteQueryStream ExecuteQuery(InstanceName instanceName, string query, string appProfileId, CallSettings callSettings = null)Executes a SQL query against a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
instanceName |
InstanceNameRequired. The unique name of the instance against which the query should be
executed.
Values are of the form |
query |
stringRequired. The query string. Exactly one of |
appProfileId |
stringOptional. This value specifies routing for replication. If not specified,
the |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientExecuteQueryStream |
The server stream. |
ExecuteQuery(ExecuteQueryRequest, CallSettings)
public virtual BigtableServiceApiClient.ExecuteQueryStream ExecuteQuery(ExecuteQueryRequest request, CallSettings callSettings = null)Executes a SQL query against a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
request |
ExecuteQueryRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientExecuteQueryStream |
The server stream. |
ExecuteQuery(string, string, CallSettings)
[Obsolete]
public virtual BigtableServiceApiClient.ExecuteQueryStream ExecuteQuery(string instanceName, string query, CallSettings callSettings = null)Executes a SQL query against a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
instanceName |
stringRequired. The unique name of the instance against which the query should be
executed.
Values are of the form |
query |
stringRequired. The query string. Exactly one of |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientExecuteQueryStream |
The server stream. |
ExecuteQuery(string, string, string, CallSettings)
[Obsolete]
public virtual BigtableServiceApiClient.ExecuteQueryStream ExecuteQuery(string instanceName, string query, string appProfileId, CallSettings callSettings = null)Executes a SQL query against a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
instanceName |
stringRequired. The unique name of the instance against which the query should be
executed.
Values are of the form |
query |
stringRequired. The query string. Exactly one of |
appProfileId |
stringOptional. This value specifies routing for replication. If not specified,
the |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientExecuteQueryStream |
The server stream. |
GenerateInitialChangeStreamPartitions(TableName, CallSettings)
public virtual BigtableServiceApiClient.GenerateInitialChangeStreamPartitionsStream GenerateInitialChangeStreamPartitions(TableName tableName, CallSettings callSettings = null)Returns the current list of partitions that make up the table's
change stream. The union of partitions will cover the entire keyspace.
Partitions can be read with ReadChangeStream.
NOTE: This API is only intended to be used by Apache Beam BigtableIO.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameRequired. The unique name of the table from which to get change stream
partitions. Values are of the form
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientGenerateInitialChangeStreamPartitionsStream |
The server stream. |
GenerateInitialChangeStreamPartitions(TableName, string, CallSettings)
public virtual BigtableServiceApiClient.GenerateInitialChangeStreamPartitionsStream GenerateInitialChangeStreamPartitions(TableName tableName, string appProfileId, CallSettings callSettings = null)Returns the current list of partitions that make up the table's
change stream. The union of partitions will cover the entire keyspace.
Partitions can be read with ReadChangeStream.
NOTE: This API is only intended to be used by Apache Beam BigtableIO.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameRequired. The unique name of the table from which to get change stream
partitions. Values are of the form
|
appProfileId |
stringThis value specifies routing for replication. If not specified, the "default" application profile will be used. Single cluster routing must be configured on the profile. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientGenerateInitialChangeStreamPartitionsStream |
The server stream. |
GenerateInitialChangeStreamPartitions(GenerateInitialChangeStreamPartitionsRequest, CallSettings)
public virtual BigtableServiceApiClient.GenerateInitialChangeStreamPartitionsStream GenerateInitialChangeStreamPartitions(GenerateInitialChangeStreamPartitionsRequest request, CallSettings callSettings = null)Returns the current list of partitions that make up the table's
change stream. The union of partitions will cover the entire keyspace.
Partitions can be read with ReadChangeStream.
NOTE: This API is only intended to be used by Apache Beam BigtableIO.
| Parameters | |
|---|---|
| Name | Description |
request |
GenerateInitialChangeStreamPartitionsRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientGenerateInitialChangeStreamPartitionsStream |
The server stream. |
GenerateInitialChangeStreamPartitions(string, CallSettings)
public virtual BigtableServiceApiClient.GenerateInitialChangeStreamPartitionsStream GenerateInitialChangeStreamPartitions(string tableName, CallSettings callSettings = null)Returns the current list of partitions that make up the table's
change stream. The union of partitions will cover the entire keyspace.
Partitions can be read with ReadChangeStream.
NOTE: This API is only intended to be used by Apache Beam BigtableIO.
| Parameters | |
|---|---|
| Name | Description |
tableName |
stringRequired. The unique name of the table from which to get change stream
partitions. Values are of the form
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientGenerateInitialChangeStreamPartitionsStream |
The server stream. |
GenerateInitialChangeStreamPartitions(string, string, CallSettings)
public virtual BigtableServiceApiClient.GenerateInitialChangeStreamPartitionsStream GenerateInitialChangeStreamPartitions(string tableName, string appProfileId, CallSettings callSettings = null)Returns the current list of partitions that make up the table's
change stream. The union of partitions will cover the entire keyspace.
Partitions can be read with ReadChangeStream.
NOTE: This API is only intended to be used by Apache Beam BigtableIO.
| Parameters | |
|---|---|
| Name | Description |
tableName |
stringRequired. The unique name of the table from which to get change stream
partitions. Values are of the form
|
appProfileId |
stringThis value specifies routing for replication. If not specified, the "default" application profile will be used. Single cluster routing must be configured on the profile. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientGenerateInitialChangeStreamPartitionsStream |
The server stream. |
MutateRow(TableName, BigtableByteString, params Mutation[])
public virtual MutateRowResponse MutateRow(TableName tableName, BigtableByteString rowKey, params Mutation[] mutations)Mutates a row atomically. Cells already present in the row are left
unchanged unless explicitly changed by mutations.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table to which the mutation should be applied. Must not be null. |
rowKey |
BigtableByteStringThe key of the row to which the mutation should be applied. Must not be empty. |
mutations |
MutationChanges to be atomically applied to the specified row. Entries are applied in order, meaning that earlier mutations can be masked by later ones. Must contain at least one entry and at most 100000. Must not be null, or contain null elements. |
| Returns | |
|---|---|
| Type | Description |
MutateRowResponse |
The response from mutating the row. |
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.
This method simply delegates to MutateRow(MutateRowRequest, CallSettings).
MutateRow(TableName, BigtableByteString, IEnumerable<Mutation>, CallSettings)
public virtual MutateRowResponse MutateRow(TableName tableName, BigtableByteString rowKey, IEnumerable<Mutation> mutations, CallSettings callSettings = null)Mutates a row atomically. Cells already present in the row are left
unchanged unless explicitly changed by mutations.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table to which the mutation should be applied. Must not be null. |
rowKey |
BigtableByteStringThe key of the row to which the mutation should be applied. Must not be empty. |
mutations |
IEnumerableMutationChanges to be atomically applied to the specified row. Entries are applied in order, meaning that earlier mutations can be masked by later ones. Must contain at least one entry and at most 100000. Must not be null, or contain null elements. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
MutateRowResponse |
The response from mutating the row. |
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.
This method simply delegates to MutateRow(MutateRowRequest, CallSettings).
MutateRow(MutateRowRequest, CallSettings)
public virtual MutateRowResponse MutateRow(MutateRowRequest request, CallSettings callSettings = null)Mutates a row atomically. Cells already present in the row are left
unchanged unless explicitly changed by mutation.
| Parameters | |
|---|---|
| Name | Description |
request |
MutateRowRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
MutateRowResponse |
The RPC response. |
MutateRowAsync(TableName, BigtableByteString, params Mutation[])
public virtual Task<MutateRowResponse> MutateRowAsync(TableName tableName, BigtableByteString rowKey, params Mutation[] mutations)Asynchronously mutates a row atomically. Cells already present in the row are left
unchanged unless explicitly changed by mutations.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table to which the mutation should be applied. Must not be null. |
rowKey |
BigtableByteStringThe key of the row to which the mutation should be applied. Must not be empty. |
mutations |
MutationChanges to be atomically applied to the specified row. Entries are applied in order, meaning that earlier mutations can be masked by later ones. Must contain at least one entry and at most 100000. Must not be null, or contain null elements. |
| Returns | |
|---|---|
| Type | Description |
TaskMutateRowResponse |
The response from mutating the row. |
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.
This method simply delegates to MutateRowAsync(MutateRowRequest, CallSettings).
await client.MutateRowAsync(
new TableName(projectId, instanceId, tableId),
// From the row with key '0xABCD1234'...
new byte[] { 0xAB, 0xCD, 0x12, 0x34 },
// delete all cells from the column family "Address",
Mutations.DeleteFromFamily("Address"),
// and all cells from the "Score:Level 1" column which are older than a day (assuming UTC
// timestamp micros have been used as version values in this column).
Mutations.DeleteFromColumn(
"Score",
"Level 1",
new BigtableVersionRange(null, DateTime.UtcNow.AddDays(-1))));
MutateRowAsync(TableName, BigtableByteString, IEnumerable<Mutation>, CallSettings)
public virtual Task<MutateRowResponse> MutateRowAsync(TableName tableName, BigtableByteString rowKey, IEnumerable<Mutation> mutations, CallSettings callSettings = null)Asynchronously mutates a row atomically. Cells already present in the row are left
unchanged unless explicitly changed by mutations.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table to which the mutation should be applied. Must not be null. |
rowKey |
BigtableByteStringThe key of the row to which the mutation should be applied. Must not be empty. |
mutations |
IEnumerableMutationChanges to be atomically applied to the specified row. Entries are applied in order, meaning that earlier mutations can be masked by later ones. Must contain at least one entry and at most 100000. Must not be null, or contain null elements. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskMutateRowResponse |
The response from mutating the row. |
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.
This method simply delegates to MutateRowAsync(MutateRowRequest, CallSettings).
MutateRowAsync(MutateRowRequest, CallSettings)
public virtual Task<MutateRowResponse> MutateRowAsync(MutateRowRequest request, CallSettings callSettings = null)Mutates a row atomically. Cells already present in the row are left
unchanged unless explicitly changed by mutation.
| Parameters | |
|---|---|
| Name | Description |
request |
MutateRowRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskMutateRowResponse |
A Task containing the RPC response. |
MutateRowAsync(MutateRowRequest, CancellationToken)
public virtual Task<MutateRowResponse> MutateRowAsync(MutateRowRequest request, CancellationToken cancellationToken)Mutates a row atomically. Cells already present in the row are left
unchanged unless explicitly changed by mutation.
| Parameters | |
|---|---|
| Name | Description |
request |
MutateRowRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskMutateRowResponse |
A Task containing the RPC response. |
MutateRows(TableName, params Entry[])
public virtual MutateRowsResponse MutateRows(TableName tableName, params MutateRowsRequest.Types.Entry[] entries)Mutates multiple rows in a batch. Each individual row is mutated atomically as in MutateRow(MutateRowRequest, CallSettings), but the entire batch is not executed atomically.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table to which the mutations should be applied. Must not be null. |
entries |
EntryThe row keys and corresponding mutations to be applied in bulk. Each entry is applied as an atomic mutation, but the entries may be applied in arbitrary order (even between entries for the same row). At least one entry must be specified, and in total the entries can contain at most 100000 mutations. |
| Returns | |
|---|---|
| Type | Description |
MutateRowsResponse |
The response from mutating the rows. |
This method simply delegates to MutateRows(TableName, IEnumerable<Entry>, CallSettings).
MutateRows(TableName, IEnumerable<Entry>, CallSettings)
public virtual MutateRowsResponse MutateRows(TableName tableName, IEnumerable<MutateRowsRequest.Types.Entry> entries, CallSettings callSettings = null)Mutates multiple rows in a batch. Each individual row is mutated atomically as in MutateRow(MutateRowRequest, CallSettings), but the entire batch is not executed atomically.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table to which the mutations should be applied. Must not be null. |
entries |
IEnumerableMutateRowsRequestTypesEntryThe row keys and corresponding mutations to be applied in bulk. Each entry is applied as an atomic mutation, but the entries may be applied in arbitrary order (even between entries for the same row). At least one entry must be specified, and in total the entries can contain at most 100000 mutations. Must not be null, or contain null elements. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
MutateRowsResponse |
The response from mutating the rows. |
This method simply delegates to MutateRows(MutateRowsRequest, CallSettings).
MutateRows(MutateRowsRequest, CallSettings)
public virtual MutateRowsResponse MutateRows(MutateRowsRequest request, CallSettings callSettings = null)Mutates multiple rows in a batch. Each individual row is mutated atomically as in MutateRow, but the entire batch is not executed atomically.
| Parameters | |
|---|---|
| Name | Description |
request |
MutateRowsRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
MutateRowsResponse |
The RPC response. |
MutateRowsAsync(TableName, params Entry[])
public virtual Task<MutateRowsResponse> MutateRowsAsync(TableName tableName, params MutateRowsRequest.Types.Entry[] entries)Mutates multiple rows in a batch. Each individual row is mutated atomically as in MutateRow(MutateRowRequest, CallSettings), but the entire batch is not executed atomically.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table to which the mutations should be applied. Must not be null. |
entries |
EntryThe row keys and corresponding mutations to be applied in bulk. Each entry is applied as an atomic mutation, but the entries may be applied in arbitrary order (even between entries for the same row). At least one entry must be specified, and in total the entries can contain at most 100000 mutations. |
| Returns | |
|---|---|
| Type | Description |
TaskMutateRowsResponse |
The response from mutating the rows. |
This method simply delegates to MutateRowsAsync(TableName, IEnumerable<Entry>, CallSettings).
MutateRowsResponse response = await client.MutateRowsAsync(
new TableName(projectId, instanceId, tableId),
// From row 'user12345'...
Mutations.CreateEntry("user12345",
// delete all cells from the column family "Score",
Mutations.DeleteFromFamily("Score"),
// and all cells from the "metrics:clicks" column which are older than a day (assuming UTC
// timestamp micros have been used as version values in this column).
Mutations.DeleteFromColumn(
"metrics",
"clicks",
new BigtableVersionRange(null, DateTime.UtcNow.AddDays(-1)))),
// Delete all data from row 'user23456'
Mutations.CreateEntry("user23456", Mutations.DeleteFromRow()));
foreach (MutateRowsResponse.Types.Entry entry in response.Entries)
{
switch (entry.Index)
{
case 0:
Console.WriteLine($"The mutations to row 'user12345' finished with status code {entry.Status.Code}");
break;
case 1:
Console.WriteLine($"The mutations to row 'user23456' finished with status code {entry.Status.Code}");
break;
default:
throw new ArgumentOutOfRangeException();
}
}
MutateRowsAsync(TableName, IEnumerable<Entry>, CallSettings)
public virtual Task<MutateRowsResponse> MutateRowsAsync(TableName tableName, IEnumerable<MutateRowsRequest.Types.Entry> entries, CallSettings callSettings = null)Mutates multiple rows in a batch. Each individual row is mutated atomically as in MutateRow(MutateRowRequest, CallSettings), but the entire batch is not executed atomically.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table to which the mutations should be applied. Must not be null. |
entries |
IEnumerableMutateRowsRequestTypesEntryThe row keys and corresponding mutations to be applied in bulk. Each entry is applied as an atomic mutation, but the entries may be applied in arbitrary order (even between entries for the same row). At least one entry must be specified, and in total the entries can contain at most 100000 mutations. Must not be null, or contain null elements. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskMutateRowsResponse |
The response from mutating the rows. |
This method simply delegates to MutateRowsAsync(MutateRowsRequest, CallSettings).
MutateRowsAsync(MutateRowsRequest, CallSettings)
public virtual Task<MutateRowsResponse> MutateRowsAsync(MutateRowsRequest request, CallSettings callSettings = null)Mutates multiple rows in a batch. Each individual row is mutated atomically as in MutateRow, but the entire batch is not executed atomically.
| Parameters | |
|---|---|
| Name | Description |
request |
MutateRowsRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskMutateRowsResponse |
The RPC response. |
MutateRowsAsync(MutateRowsRequest, CancellationToken)
public virtual Task<MutateRowsResponse> MutateRowsAsync(MutateRowsRequest request, CancellationToken cancellationToken)Mutates multiple rows in a batch. Each individual row is mutated atomically as in MutateRow, but the entire batch is not executed atomically.
| Parameters | |
|---|---|
| Name | Description |
request |
MutateRowsRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskMutateRowsResponse |
The RPC response. |
PingAndWarm(InstanceName, CallSettings)
public virtual PingAndWarmResponse PingAndWarm(InstanceName name, CallSettings callSettings = null)Warm up associated instance metadata for this connection. This call is not required but may be useful for connection keep-alive.
| Parameters | |
|---|---|
| Name | Description |
name |
InstanceNameRequired. The unique name of the instance to check permissions for as well
as respond. Values are of the form
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PingAndWarmResponse |
The RPC response. |
PingAndWarm(InstanceName, string, CallSettings)
public virtual PingAndWarmResponse PingAndWarm(InstanceName name, string appProfileId, CallSettings callSettings = null)Warm up associated instance metadata for this connection. This call is not required but may be useful for connection keep-alive.
| Parameters | |
|---|---|
| Name | Description |
name |
InstanceNameRequired. The unique name of the instance to check permissions for as well
as respond. Values are of the form
|
appProfileId |
stringThis value specifies routing for replication. If not specified, the "default" application profile will be used. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PingAndWarmResponse |
The RPC response. |
PingAndWarm(PingAndWarmRequest, CallSettings)
public virtual PingAndWarmResponse PingAndWarm(PingAndWarmRequest request, CallSettings callSettings = null)Warm up associated instance metadata for this connection. This call is not required but may be useful for connection keep-alive.
| Parameters | |
|---|---|
| Name | Description |
request |
PingAndWarmRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PingAndWarmResponse |
The RPC response. |
PingAndWarm(string, CallSettings)
public virtual PingAndWarmResponse PingAndWarm(string name, CallSettings callSettings = null)Warm up associated instance metadata for this connection. This call is not required but may be useful for connection keep-alive.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The unique name of the instance to check permissions for as well
as respond. Values are of the form
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PingAndWarmResponse |
The RPC response. |
PingAndWarm(string, string, CallSettings)
public virtual PingAndWarmResponse PingAndWarm(string name, string appProfileId, CallSettings callSettings = null)Warm up associated instance metadata for this connection. This call is not required but may be useful for connection keep-alive.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The unique name of the instance to check permissions for as well
as respond. Values are of the form
|
appProfileId |
stringThis value specifies routing for replication. If not specified, the "default" application profile will be used. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PingAndWarmResponse |
The RPC response. |
PingAndWarmAsync(InstanceName, CallSettings)
public virtual Task<PingAndWarmResponse> PingAndWarmAsync(InstanceName name, CallSettings callSettings = null)Warm up associated instance metadata for this connection. This call is not required but may be useful for connection keep-alive.
| Parameters | |
|---|---|
| Name | Description |
name |
InstanceNameRequired. The unique name of the instance to check permissions for as well
as respond. Values are of the form
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPingAndWarmResponse |
A Task containing the RPC response. |
PingAndWarmAsync(InstanceName, string, CallSettings)
public virtual Task<PingAndWarmResponse> PingAndWarmAsync(InstanceName name, string appProfileId, CallSettings callSettings = null)Warm up associated instance metadata for this connection. This call is not required but may be useful for connection keep-alive.
| Parameters | |
|---|---|
| Name | Description |
name |
InstanceNameRequired. The unique name of the instance to check permissions for as well
as respond. Values are of the form
|
appProfileId |
stringThis value specifies routing for replication. If not specified, the "default" application profile will be used. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPingAndWarmResponse |
A Task containing the RPC response. |
PingAndWarmAsync(InstanceName, string, CancellationToken)
public virtual Task<PingAndWarmResponse> PingAndWarmAsync(InstanceName name, string appProfileId, CancellationToken cancellationToken)Warm up associated instance metadata for this connection. This call is not required but may be useful for connection keep-alive.
| Parameters | |
|---|---|
| Name | Description |
name |
InstanceNameRequired. The unique name of the instance to check permissions for as well
as respond. Values are of the form
|
appProfileId |
stringThis value specifies routing for replication. If not specified, the "default" application profile will be used. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPingAndWarmResponse |
A Task containing the RPC response. |
PingAndWarmAsync(InstanceName, CancellationToken)
public virtual Task<PingAndWarmResponse> PingAndWarmAsync(InstanceName name, CancellationToken cancellationToken)Warm up associated instance metadata for this connection. This call is not required but may be useful for connection keep-alive.
| Parameters | |
|---|---|
| Name | Description |
name |
InstanceNameRequired. The unique name of the instance to check permissions for as well
as respond. Values are of the form
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPingAndWarmResponse |
A Task containing the RPC response. |
PingAndWarmAsync(PingAndWarmRequest, CallSettings)
public virtual Task<PingAndWarmResponse> PingAndWarmAsync(PingAndWarmRequest request, CallSettings callSettings = null)Warm up associated instance metadata for this connection. This call is not required but may be useful for connection keep-alive.
| Parameters | |
|---|---|
| Name | Description |
request |
PingAndWarmRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPingAndWarmResponse |
A Task containing the RPC response. |
PingAndWarmAsync(PingAndWarmRequest, CancellationToken)
public virtual Task<PingAndWarmResponse> PingAndWarmAsync(PingAndWarmRequest request, CancellationToken cancellationToken)Warm up associated instance metadata for this connection. This call is not required but may be useful for connection keep-alive.
| Parameters | |
|---|---|
| Name | Description |
request |
PingAndWarmRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPingAndWarmResponse |
A Task containing the RPC response. |
PingAndWarmAsync(string, CallSettings)
public virtual Task<PingAndWarmResponse> PingAndWarmAsync(string name, CallSettings callSettings = null)Warm up associated instance metadata for this connection. This call is not required but may be useful for connection keep-alive.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The unique name of the instance to check permissions for as well
as respond. Values are of the form
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPingAndWarmResponse |
A Task containing the RPC response. |
PingAndWarmAsync(string, string, CallSettings)
public virtual Task<PingAndWarmResponse> PingAndWarmAsync(string name, string appProfileId, CallSettings callSettings = null)Warm up associated instance metadata for this connection. This call is not required but may be useful for connection keep-alive.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The unique name of the instance to check permissions for as well
as respond. Values are of the form
|
appProfileId |
stringThis value specifies routing for replication. If not specified, the "default" application profile will be used. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPingAndWarmResponse |
A Task containing the RPC response. |
PingAndWarmAsync(string, string, CancellationToken)
public virtual Task<PingAndWarmResponse> PingAndWarmAsync(string name, string appProfileId, CancellationToken cancellationToken)Warm up associated instance metadata for this connection. This call is not required but may be useful for connection keep-alive.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The unique name of the instance to check permissions for as well
as respond. Values are of the form
|
appProfileId |
stringThis value specifies routing for replication. If not specified, the "default" application profile will be used. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPingAndWarmResponse |
A Task containing the RPC response. |
PingAndWarmAsync(string, CancellationToken)
public virtual Task<PingAndWarmResponse> PingAndWarmAsync(string name, CancellationToken cancellationToken)Warm up associated instance metadata for this connection. This call is not required but may be useful for connection keep-alive.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The unique name of the instance to check permissions for as well
as respond. Values are of the form
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPingAndWarmResponse |
A Task containing the RPC response. |
PrepareQuery(InstanceName, string, CallSettings)
public virtual PrepareQueryResponse PrepareQuery(InstanceName instanceName, string query, CallSettings callSettings = null)Prepares a GoogleSQL query for execution on a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
instanceName |
InstanceNameRequired. The unique name of the instance against which the query should be
executed.
Values are of the form |
query |
stringRequired. The query string. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PrepareQueryResponse |
The RPC response. |
PrepareQuery(InstanceName, string, string, CallSettings)
public virtual PrepareQueryResponse PrepareQuery(InstanceName instanceName, string query, string appProfileId, CallSettings callSettings = null)Prepares a GoogleSQL query for execution on a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
instanceName |
InstanceNameRequired. The unique name of the instance against which the query should be
executed.
Values are of the form |
query |
stringRequired. The query string. |
appProfileId |
stringOptional. This value specifies routing for preparing the query. Note that
this |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PrepareQueryResponse |
The RPC response. |
PrepareQuery(PrepareQueryRequest, CallSettings)
public virtual PrepareQueryResponse PrepareQuery(PrepareQueryRequest request, CallSettings callSettings = null)Prepares a GoogleSQL query for execution on a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
request |
PrepareQueryRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PrepareQueryResponse |
The RPC response. |
PrepareQuery(string, string, CallSettings)
public virtual PrepareQueryResponse PrepareQuery(string instanceName, string query, CallSettings callSettings = null)Prepares a GoogleSQL query for execution on a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
instanceName |
stringRequired. The unique name of the instance against which the query should be
executed.
Values are of the form |
query |
stringRequired. The query string. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PrepareQueryResponse |
The RPC response. |
PrepareQuery(string, string, string, CallSettings)
public virtual PrepareQueryResponse PrepareQuery(string instanceName, string query, string appProfileId, CallSettings callSettings = null)Prepares a GoogleSQL query for execution on a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
instanceName |
stringRequired. The unique name of the instance against which the query should be
executed.
Values are of the form |
query |
stringRequired. The query string. |
appProfileId |
stringOptional. This value specifies routing for preparing the query. Note that
this |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PrepareQueryResponse |
The RPC response. |
PrepareQueryAsync(InstanceName, string, CallSettings)
public virtual Task<PrepareQueryResponse> PrepareQueryAsync(InstanceName instanceName, string query, CallSettings callSettings = null)Prepares a GoogleSQL query for execution on a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
instanceName |
InstanceNameRequired. The unique name of the instance against which the query should be
executed.
Values are of the form |
query |
stringRequired. The query string. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPrepareQueryResponse |
A Task containing the RPC response. |
PrepareQueryAsync(InstanceName, string, string, CallSettings)
public virtual Task<PrepareQueryResponse> PrepareQueryAsync(InstanceName instanceName, string query, string appProfileId, CallSettings callSettings = null)Prepares a GoogleSQL query for execution on a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
instanceName |
InstanceNameRequired. The unique name of the instance against which the query should be
executed.
Values are of the form |
query |
stringRequired. The query string. |
appProfileId |
stringOptional. This value specifies routing for preparing the query. Note that
this |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPrepareQueryResponse |
A Task containing the RPC response. |
PrepareQueryAsync(InstanceName, string, string, CancellationToken)
public virtual Task<PrepareQueryResponse> PrepareQueryAsync(InstanceName instanceName, string query, string appProfileId, CancellationToken cancellationToken)Prepares a GoogleSQL query for execution on a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
instanceName |
InstanceNameRequired. The unique name of the instance against which the query should be
executed.
Values are of the form |
query |
stringRequired. The query string. |
appProfileId |
stringOptional. This value specifies routing for preparing the query. Note that
this |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPrepareQueryResponse |
A Task containing the RPC response. |
PrepareQueryAsync(InstanceName, string, CancellationToken)
public virtual Task<PrepareQueryResponse> PrepareQueryAsync(InstanceName instanceName, string query, CancellationToken cancellationToken)Prepares a GoogleSQL query for execution on a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
instanceName |
InstanceNameRequired. The unique name of the instance against which the query should be
executed.
Values are of the form |
query |
stringRequired. The query string. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPrepareQueryResponse |
A Task containing the RPC response. |
PrepareQueryAsync(PrepareQueryRequest, CallSettings)
public virtual Task<PrepareQueryResponse> PrepareQueryAsync(PrepareQueryRequest request, CallSettings callSettings = null)Prepares a GoogleSQL query for execution on a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
request |
PrepareQueryRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPrepareQueryResponse |
A Task containing the RPC response. |
PrepareQueryAsync(PrepareQueryRequest, CancellationToken)
public virtual Task<PrepareQueryResponse> PrepareQueryAsync(PrepareQueryRequest request, CancellationToken cancellationToken)Prepares a GoogleSQL query for execution on a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
request |
PrepareQueryRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPrepareQueryResponse |
A Task containing the RPC response. |
PrepareQueryAsync(string, string, CallSettings)
public virtual Task<PrepareQueryResponse> PrepareQueryAsync(string instanceName, string query, CallSettings callSettings = null)Prepares a GoogleSQL query for execution on a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
instanceName |
stringRequired. The unique name of the instance against which the query should be
executed.
Values are of the form |
query |
stringRequired. The query string. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPrepareQueryResponse |
A Task containing the RPC response. |
PrepareQueryAsync(string, string, string, CallSettings)
public virtual Task<PrepareQueryResponse> PrepareQueryAsync(string instanceName, string query, string appProfileId, CallSettings callSettings = null)Prepares a GoogleSQL query for execution on a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
instanceName |
stringRequired. The unique name of the instance against which the query should be
executed.
Values are of the form |
query |
stringRequired. The query string. |
appProfileId |
stringOptional. This value specifies routing for preparing the query. Note that
this |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPrepareQueryResponse |
A Task containing the RPC response. |
PrepareQueryAsync(string, string, string, CancellationToken)
public virtual Task<PrepareQueryResponse> PrepareQueryAsync(string instanceName, string query, string appProfileId, CancellationToken cancellationToken)Prepares a GoogleSQL query for execution on a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
instanceName |
stringRequired. The unique name of the instance against which the query should be
executed.
Values are of the form |
query |
stringRequired. The query string. |
appProfileId |
stringOptional. This value specifies routing for preparing the query. Note that
this |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPrepareQueryResponse |
A Task containing the RPC response. |
PrepareQueryAsync(string, string, CancellationToken)
public virtual Task<PrepareQueryResponse> PrepareQueryAsync(string instanceName, string query, CancellationToken cancellationToken)Prepares a GoogleSQL query for execution on a particular Bigtable instance.
| Parameters | |
|---|---|
| Name | Description |
instanceName |
stringRequired. The unique name of the instance against which the query should be
executed.
Values are of the form |
query |
stringRequired. The query string. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPrepareQueryResponse |
A Task containing the RPC response. |
ReadChangeStream(TableName, CallSettings)
public virtual BigtableServiceApiClient.ReadChangeStreamStream ReadChangeStream(TableName tableName, CallSettings callSettings = null)Reads changes from a table's change stream. Changes will reflect both user-initiated mutations and mutations that are caused by garbage collection. NOTE: This API is only intended to be used by Apache Beam BigtableIO.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameRequired. The unique name of the table from which to read a change stream.
Values are of the form
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientReadChangeStreamStream |
The server stream. |
ReadChangeStream(TableName, string, CallSettings)
public virtual BigtableServiceApiClient.ReadChangeStreamStream ReadChangeStream(TableName tableName, string appProfileId, CallSettings callSettings = null)Reads changes from a table's change stream. Changes will reflect both user-initiated mutations and mutations that are caused by garbage collection. NOTE: This API is only intended to be used by Apache Beam BigtableIO.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameRequired. The unique name of the table from which to read a change stream.
Values are of the form
|
appProfileId |
stringThis value specifies routing for replication. If not specified, the "default" application profile will be used. Single cluster routing must be configured on the profile. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientReadChangeStreamStream |
The server stream. |
ReadChangeStream(ReadChangeStreamRequest, CallSettings)
public virtual BigtableServiceApiClient.ReadChangeStreamStream ReadChangeStream(ReadChangeStreamRequest request, CallSettings callSettings = null)Reads changes from a table's change stream. Changes will reflect both user-initiated mutations and mutations that are caused by garbage collection. NOTE: This API is only intended to be used by Apache Beam BigtableIO.
| Parameters | |
|---|---|
| Name | Description |
request |
ReadChangeStreamRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientReadChangeStreamStream |
The server stream. |
ReadChangeStream(string, CallSettings)
public virtual BigtableServiceApiClient.ReadChangeStreamStream ReadChangeStream(string tableName, CallSettings callSettings = null)Reads changes from a table's change stream. Changes will reflect both user-initiated mutations and mutations that are caused by garbage collection. NOTE: This API is only intended to be used by Apache Beam BigtableIO.
| Parameters | |
|---|---|
| Name | Description |
tableName |
stringRequired. The unique name of the table from which to read a change stream.
Values are of the form
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientReadChangeStreamStream |
The server stream. |
ReadChangeStream(string, string, CallSettings)
public virtual BigtableServiceApiClient.ReadChangeStreamStream ReadChangeStream(string tableName, string appProfileId, CallSettings callSettings = null)Reads changes from a table's change stream. Changes will reflect both user-initiated mutations and mutations that are caused by garbage collection. NOTE: This API is only intended to be used by Apache Beam BigtableIO.
| Parameters | |
|---|---|
| Name | Description |
tableName |
stringRequired. The unique name of the table from which to read a change stream.
Values are of the form
|
appProfileId |
stringThis value specifies routing for replication. If not specified, the "default" application profile will be used. Single cluster routing must be configured on the profile. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientReadChangeStreamStream |
The server stream. |
ReadModifyWriteRow(TableName, BigtableByteString, params ReadModifyWriteRule[])
public virtual ReadModifyWriteRowResponse ReadModifyWriteRow(TableName tableName, BigtableByteString rowKey, params ReadModifyWriteRule[] rules)Modifies a row atomically on the server. The method reads the latest existing version and value from the specified columns and writes a new entry based on pre-defined read/modify/write rules. The new value for the version is the greater of the previous value's version or the current server version. The method returns the new contents of all modified cells.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table to which the read/modify/write rules should be applied. Must not be null. |
rowKey |
BigtableByteStringThe key of the row to which the read/modify/write rules should be applied. Must not be empty. |
rules |
ReadModifyWriteRuleRules specifying how the specified row's contents are to be transformed into writes. Entries are applied in order, meaning that earlier rules will affect the results of later ones. Must not be null, or contain null elements. |
| Returns | |
|---|---|
| Type | Description |
ReadModifyWriteRowResponse |
The response from modifying the row. |
Note that the server version is based on the current timestamp since the Unix epoch, so for columns which are updated using ReadModifyWriteRow, other reads and writes of those columns should use BigtableVersion values constructed from DateTime values, as opposed to using a custom versioning scheme with 64-bit values.
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.
This method simply delegates to ReadModifyWriteRow(ReadModifyWriteRowRequest, CallSettings).
ReadModifyWriteRow(TableName, BigtableByteString, IEnumerable<ReadModifyWriteRule>, CallSettings)
public virtual ReadModifyWriteRowResponse ReadModifyWriteRow(TableName tableName, BigtableByteString rowKey, IEnumerable<ReadModifyWriteRule> rules, CallSettings callSettings = null)Modifies a row atomically on the server. The method reads the latest existing version and value from the specified columns and writes a new entry based on pre-defined read/modify/write rules. The new value for the version is the greater of the previous value's version or the current server version. The method returns the new contents of all modified cells.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table to which the read/modify/write rules should be applied. Must not be null. |
rowKey |
BigtableByteStringThe key of the row to which the read/modify/write rules should be applied. Must not be empty. |
rules |
IEnumerableReadModifyWriteRuleRules specifying how the specified row's contents are to be transformed into writes. Entries are applied in order, meaning that earlier rules will affect the results of later ones. Must not be null, or contain null elements. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ReadModifyWriteRowResponse |
The response from modifying the row. |
Note that the server version is based on the current timestamp since the Unix epoch, so for columns which are updated using ReadModifyWriteRow, other reads and writes of those columns should use BigtableVersion values constructed from DateTime values, as opposed to using a custom versioning scheme with 64-bit values.
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.
This method simply delegates to ReadModifyWriteRow(ReadModifyWriteRowRequest, CallSettings).
ReadModifyWriteRow(ReadModifyWriteRowRequest, CallSettings)
public virtual ReadModifyWriteRowResponse ReadModifyWriteRow(ReadModifyWriteRowRequest request, CallSettings callSettings = null)Modifies a row atomically on the server. The method reads the latest existing timestamp and value from the specified columns and writes a new entry based on pre-defined read/modify/write rules. The new value for the timestamp is the greater of the existing timestamp or the current server time. The method returns the new contents of all modified cells.
| Parameters | |
|---|---|
| Name | Description |
request |
ReadModifyWriteRowRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ReadModifyWriteRowResponse |
The RPC response. |
ReadModifyWriteRowAsync(TableName, BigtableByteString, params ReadModifyWriteRule[])
public virtual Task<ReadModifyWriteRowResponse> ReadModifyWriteRowAsync(TableName tableName, BigtableByteString rowKey, params ReadModifyWriteRule[] rules)Asynchronously modifies a row atomically on the server. The method reads the latest existing version and value from the specified columns and writes a new entry based on pre-defined read/modify/write rules. The new value for the version is the greater of the previous value's version or the current server version. The method returns the new contents of all modified cells.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table to which the read/modify/write rules should be applied. Must not be null. |
rowKey |
BigtableByteStringThe key of the row to which the read/modify/write rules should be applied. Must not be empty. |
rules |
ReadModifyWriteRuleRules specifying how the specified row's contents are to be transformed into writes. Entries are applied in order, meaning that earlier rules will affect the results of later ones. Must not be null, or contain null elements. |
| Returns | |
|---|---|
| Type | Description |
TaskReadModifyWriteRowResponse |
The response from modifying the row. |
Note that the server version is based on the current timestamp since the Unix epoch, so for columns which are updated using ReadModifyWriteRow, other reads and writes of those columns should use BigtableVersion values constructed from DateTime values, as opposed to using a custom versioning scheme with 64-bit values.
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.
This method simply delegates to ReadModifyWriteRowAsync(ReadModifyWriteRowRequest, CallSettings).
// Increase the value of the cell with the "Level 1" qualifier in the
// "Score" column family by 55.
ReadModifyWriteRowResponse response = await client.ReadModifyWriteRowAsync(
new TableName(projectId, instanceId, tableId),
"user12345",
ReadModifyWriteRules.Increment("Score", "Level 1", 55));
Cell modifiedCell = response.Row.Families[0].Columns[0].Cells[0];
// Implicitly convert the ByteString Value into a BigtableByteString,
// which supports additional conversions specific to Bigtable.
BigtableByteString value = modifiedCell.Value;
// Convert the BigtableByteString to a long to obtain the updated value.
long newScore = (long) value;
Console.WriteLine($"The total score for level 1 is now {newScore}");
ReadModifyWriteRowAsync(TableName, BigtableByteString, IEnumerable<ReadModifyWriteRule>, CallSettings)
public virtual Task<ReadModifyWriteRowResponse> ReadModifyWriteRowAsync(TableName tableName, BigtableByteString rowKey, IEnumerable<ReadModifyWriteRule> rules, CallSettings callSettings = null)Asynchronously modifies a row atomically on the server. The method reads the latest existing version and value from the specified columns and writes a new entry based on pre-defined read/modify/write rules. The new value for the version is the greater of the previous value's version or the current server version. The method returns the new contents of all modified cells.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table to which the read/modify/write rules should be applied. Must not be null. |
rowKey |
BigtableByteStringThe key of the row to which the read/modify/write rules should be applied. Must not be empty. |
rules |
IEnumerableReadModifyWriteRuleRules specifying how the specified row's contents are to be transformed into writes. Entries are applied in order, meaning that earlier rules will affect the results of later ones. Must not be null, or contain null elements. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskReadModifyWriteRowResponse |
The response from modifying the row. |
Note that the server version is based on the current timestamp since the Unix epoch, so for columns which are updated using ReadModifyWriteRow, other reads and writes of those columns should use BigtableVersion values constructed from DateTime values, as opposed to using a custom versioning scheme with 64-bit values.
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.
This method simply delegates to ReadModifyWriteRowAsync(ReadModifyWriteRowRequest, CallSettings).
ReadModifyWriteRowAsync(ReadModifyWriteRowRequest, CallSettings)
public virtual Task<ReadModifyWriteRowResponse> ReadModifyWriteRowAsync(ReadModifyWriteRowRequest request, CallSettings callSettings = null)Modifies a row atomically on the server. The method reads the latest existing timestamp and value from the specified columns and writes a new entry based on pre-defined read/modify/write rules. The new value for the timestamp is the greater of the existing timestamp or the current server time. The method returns the new contents of all modified cells.
| Parameters | |
|---|---|
| Name | Description |
request |
ReadModifyWriteRowRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskReadModifyWriteRowResponse |
A Task containing the RPC response. |
ReadModifyWriteRowAsync(ReadModifyWriteRowRequest, CancellationToken)
public virtual Task<ReadModifyWriteRowResponse> ReadModifyWriteRowAsync(ReadModifyWriteRowRequest request, CancellationToken cancellationToken)Modifies a row atomically on the server. The method reads the latest existing timestamp and value from the specified columns and writes a new entry based on pre-defined read/modify/write rules. The new value for the timestamp is the greater of the existing timestamp or the current server time. The method returns the new contents of all modified cells.
| Parameters | |
|---|---|
| Name | Description |
request |
ReadModifyWriteRowRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskReadModifyWriteRowResponse |
A Task containing the RPC response. |
ReadRow(TableName, BigtableByteString, RowFilter, CallSettings)
public virtual Row ReadRow(TableName tableName, BigtableByteString rowKey, RowFilter filter = null, CallSettings callSettings = null)Returns the contents of the requested row, optionally applying the specified Reader filter.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table from which to read. Must not be null. |
rowKey |
BigtableByteStringThe key of the row to read. Must not be empty. |
filter |
RowFilterThe filter to apply to the contents of the specified row. If null, reads the entirety of the row. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Row |
The row from the server or null if it does not exist. |
This method simply delegates to ReadRowAsync(TableName, BigtableByteString, RowFilter, CallSettings).
ReadRowAsync(TableName, BigtableByteString, RowFilter, CallSettings)
public virtual Task<Row> ReadRowAsync(TableName tableName, BigtableByteString rowKey, RowFilter filter = null, CallSettings callSettings = null)Asynchronously returns the contents of the requested row, optionally applying the specified Reader filter.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table from which to read. Must not be null. |
rowKey |
BigtableByteStringThe key of the row to read. Must not be empty. |
filter |
RowFilterThe filter to apply to the contents of the specified row. If null, reads the entirety of the row. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRow |
The row from the server or null if it does not exist. |
This method simply delegates to ReadRows(TableName, RowSet, RowFilter, long?, CallSettings) and takes the single row result or null if no rows are returned.
// Only read cells from the "Line X" columns, where X is some
// digit, in the Address column family and only take the most
// recent cell from each column.
Row row = await client.ReadRowAsync(
new TableName(projectId, instanceId, tableId),
"user12345",
RowFilters.Chain(
RowFilters.FamilyNameExact("Address"),
RowFilters.ColumnQualifierRegex(@"Line \d"),
RowFilters.CellsPerColumnLimit(1)),
CallSettings.FromCancellationToken(cancellationToken));
Family addressFamily = row.Families.FirstOrDefault();
if (addressFamily != null)
{
foreach (Column column in addressFamily.Columns)
{
Console.WriteLine($" Column qualifier: {column.Qualifier.ToStringUtf8()}");
foreach (Cell cell in column.Cells)
{
Console.WriteLine($" Cell value: {cell.Value.ToStringUtf8()}");
Console.WriteLine($" Timestamp: {cell.Version.ToDateTime()}");
Console.WriteLine($" Labels: {string.Join(", ", cell.Labels)}");
}
}
}
ReadRows(TableName, RowSet, RowFilter, long?, CallSettings)
public virtual ReadRowsStream ReadRows(TableName tableName, RowSet rows = null, RowFilter filter = null, long? rowsLimit = null, CallSettings callSettings = null)Streams back the contents of all requested rows in key order, optionally applying the same Reader filter to each.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameThe unique name of the table from which to read. Must not be null. |
rows |
RowSetThe row keys and/or ranges to read. If null, reads from all rows. |
filter |
RowFilterThe filter to apply to the contents of the specified row(s). If null, reads the entirety of each row. |
rowsLimit |
longThe read will terminate after committing to N rows' worth of results. If null or 0, returns all results. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ReadRowsStream |
The server stream. |
This method simply delegates to ReadRows(ReadRowsRequest, CallSettings).
TableName tableName = new TableName(projectId, instanceId, tableId);
// Read rows whose keys are greater than or equal to 'user00000'
// and less than 'user99999'.
RowSet rows = RowSet.FromRowRanges(
RowRange.ClosedOpen("user00000", "user99999"));
// Only read cells from the "Address" column family and only take the most recent cell from each column.
RowFilter filter = RowFilters.Chain(
RowFilters.FamilyNameExact("Address"),
RowFilters.CellsPerColumnLimit(1));
// Just read the first 10 rows.
long rowsLimit = 10;
// Make the request
ReadRowsStream streamingResponse = client.ReadRows(
tableName,
rows,
filter,
rowsLimit,
CallSettings.FromCancellationToken(cancellationToken));
// Read streaming responses from server until complete
await streamingResponse.ForEachAsync(row =>
{
Console.WriteLine($"Row key: {row.Key.ToStringUtf8()}");
foreach (Family family in row.Families)
{
Console.WriteLine($" Family name: {family.Name}");
foreach (Column column in family.Columns)
{
Console.WriteLine($" Column qualifier: {column.Qualifier.ToStringUtf8()}");
foreach (Cell cell in column.Cells)
{
Console.WriteLine($" Cell value: {cell.Value.ToStringUtf8()}");
Console.WriteLine($" Timestamp: {cell.Version.ToDateTime()}");
Console.WriteLine($" Labels: {string.Join(", ", cell.Labels)}");
}
}
}
});
ReadRows(ReadRowsRequest, CallSettings)
public virtual ReadRowsStream ReadRows(ReadRowsRequest request, CallSettings callSettings = null)Streams back the contents of all requested rows in key order, optionally applying the same Reader filter to each.
| Parameters | |
|---|---|
| Name | Description |
request |
ReadRowsRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
ReadRowsStream |
The server stream. |
SampleRowKeys(TableName, CallSettings)
public virtual BigtableServiceApiClient.SampleRowKeysStream SampleRowKeys(TableName tableName, CallSettings callSettings = null)Returns a sample of row keys in the table. The returned row keys will delimit contiguous sections of the table of approximately equal size, which can be used to break up the data for distributed tasks like mapreduces.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameOptional. The unique name of the table from which to sample row keys. Values are of the form
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientSampleRowKeysStream |
The server stream. |
BigtableServiceApiClient.SampleRowKeysStream streamingResponse = client.SampleRowKeys(
new TableName(projectId, instanceId, tableId),
CallSettings.FromCancellationToken(cancellationToken));
// Get all streaming responses from server in a list so they can be easily iterated.
IList<SampleRowKeysResponse> rowKeySamples =
await streamingResponse.ToListAsync(cancellationToken);
long previousRowOffsetBytes = 0;
foreach (SampleRowKeysResponse rowKeySample in rowKeySamples)
{
// The OffsetBytes are non-decreasing, so their difference should always be 0 or more.
long offsetDifference = rowKeySample.OffsetBytes - previousRowOffsetBytes;
Console.WriteLine($"Row key: {rowKeySample.RowKey.ToStringUtf8()}, at offset {rowKeySample.OffsetBytes}");
Console.WriteLine($" Approximate bytes since previous row sample: {offsetDifference}");
previousRowOffsetBytes = rowKeySample.OffsetBytes;
}
SampleRowKeys(TableName, string, CallSettings)
public virtual BigtableServiceApiClient.SampleRowKeysStream SampleRowKeys(TableName tableName, string appProfileId, CallSettings callSettings = null)Returns a sample of row keys in the table. The returned row keys will delimit contiguous sections of the table of approximately equal size, which can be used to break up the data for distributed tasks like mapreduces.
| Parameters | |
|---|---|
| Name | Description |
tableName |
TableNameOptional. The unique name of the table from which to sample row keys. Values are of the form
|
appProfileId |
stringThis value specifies routing for replication. If not specified, the "default" application profile will be used. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientSampleRowKeysStream |
The server stream. |
SampleRowKeys(SampleRowKeysRequest, CallSettings)
public virtual BigtableServiceApiClient.SampleRowKeysStream SampleRowKeys(SampleRowKeysRequest request, CallSettings callSettings = null)Returns a sample of row keys in the table. The returned row keys will delimit contiguous sections of the table of approximately equal size, which can be used to break up the data for distributed tasks like mapreduces.
| Parameters | |
|---|---|
| Name | Description |
request |
SampleRowKeysRequestThe request object containing all of the parameters for the API call. If the AppProfileId has not been specified, it will be initialized from the value stored in the client. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientSampleRowKeysStream |
The server stream. |
SampleRowKeys(string, CallSettings)
public virtual BigtableServiceApiClient.SampleRowKeysStream SampleRowKeys(string tableName, CallSettings callSettings = null)Returns a sample of row keys in the table. The returned row keys will delimit contiguous sections of the table of approximately equal size, which can be used to break up the data for distributed tasks like mapreduces.
| Parameters | |
|---|---|
| Name | Description |
tableName |
stringOptional. The unique name of the table from which to sample row keys. Values are of the form
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientSampleRowKeysStream |
The server stream. |
SampleRowKeys(string, string, CallSettings)
public virtual BigtableServiceApiClient.SampleRowKeysStream SampleRowKeys(string tableName, string appProfileId, CallSettings callSettings = null)Returns a sample of row keys in the table. The returned row keys will delimit contiguous sections of the table of approximately equal size, which can be used to break up the data for distributed tasks like mapreduces.
| Parameters | |
|---|---|
| Name | Description |
tableName |
stringOptional. The unique name of the table from which to sample row keys. Values are of the form
|
appProfileId |
stringThis value specifies routing for replication. If not specified, the "default" application profile will be used. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
BigtableServiceApiClientSampleRowKeysStream |
The server stream. |