public sealed class PartitionReadOrQueryRequest
Reference documentation and code samples for the Google Cloud Spanner v1 API class PartitionReadOrQueryRequest.
Class for common properties of PartitionReadRequest and PartitionQueryRequest.
Namespace
Google.Cloud.Spanner.V1Assembly
Google.Cloud.Spanner.V1.dll
Properties
PartitionOptions
public PartitionOptions PartitionOptions { get; set; }
See PartitionOptions and PartitionOptions
Property Value | |
---|---|
Type | Description |
PartitionOptions |
SessionAsSessionName
public SessionName SessionAsSessionName { set; }
Property Value | |
---|---|
Type | Description |
SessionName |
Transaction
public TransactionSelector Transaction { set; }
See Transaction and Transaction
Property Value | |
---|---|
Type | Description |
TransactionSelector |
Methods
GetCallSettings(SpannerSettings)
public CallSettings GetCallSettings(SpannerSettings spannerSettings)
Extracts the corresponding CallSettings for the partition read or query request from the SpannerSettings.
Parameter | |
---|---|
Name | Description |
spannerSettings | SpannerSettings The SpannerSettings to extract the CallSettings from |
Returns | |
---|---|
Type | Description |
CallSettings | The CallSettings to use for the request |
GetHashCode()
public override int GetHashCode()
Returns | |
---|---|
Type | Description |
int |
PartitionReadOrQueryAsync(PooledSession, CallSettings)
public Task<PartitionResponse> PartitionReadOrQueryAsync(PooledSession session, CallSettings callSettings)
Executes a PartitionRead or PartitionQuery RPC asynchronously.
Parameters | |
---|---|
Name | Description |
session | PooledSession The session to use for the request. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPartitionResponse | A task representing the asynchronous operation. When the task completes, the result is the response from the RPC. |