Google Cloud Spanner v1 API - Class PartitionReadOrQueryRequest (5.0.0-beta04)

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.

Inheritance

object > PartitionReadOrQueryRequest

Namespace

Google.Cloud.Spanner.V1

Assembly

Google.Cloud.Spanner.V1.dll

Properties

PartitionOptions

public PartitionOptions PartitionOptions { get; set; }
Property Value
Type Description
PartitionOptions

SessionAsSessionName

public SessionName SessionAsSessionName { set; }

See Session and Session

Property Value
Type Description
SessionName

Transaction

public TransactionSelector Transaction { get; set; }
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
Overrides

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.