public sealed class PartitionReadOrQueryRequestClass 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 |
SpannerSettingsThe 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 |
Int32 |
|
PartitionReadOrQueryAsync(PooledSession, CallSettings)
public Task<PartitionResponse> PartitionReadOrQueryAsync(PooledSession session, CallSettings callSettings)Executes a PartitionRead or PartitionQuery RPC asynchronously.
| Parameters | |
|---|---|
| Name | Description |
session |
PooledSessionThe session to use for the request. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task<PartitionResponse> |
A task representing the asynchronous operation. When the task completes, the result is the response from the RPC. |