Google Cloud Spanner v1 API - Class PartitionReadOrQueryRequest (4.3.0)

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

GoogleGoogle.CloudGoogle.Cloud.SpannerV1

Assembly

Google.Cloud.Spanner.V1.dll

Properties

PartitionOptions

public PartitionOptions PartitionOptions { get; set; }
Property Value
TypeDescription
PartitionOptions

SessionAsSessionName

public SessionName SessionAsSessionName { set; }

See Session and Session

Property Value
TypeDescription
SessionName

Transaction

public TransactionSelector Transaction { set; }
Property Value
TypeDescription
TransactionSelector

Methods

GetCallSettings(SpannerSettings)

public CallSettings GetCallSettings(SpannerSettings spannerSettings)

Extracts the corresponding CallSettings for the partition read or query request from the SpannerSettings.

Parameter
NameDescription
spannerSettingsSpannerSettings

The SpannerSettings to extract the CallSettings from

Returns
TypeDescription
CallSettings

The CallSettings to use for the request

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
int
Overrides

PartitionReadOrQueryAsync(PooledSession, CallSettings)

public Task<PartitionResponse> PartitionReadOrQueryAsync(PooledSession session, CallSettings callSettings)

Executes a PartitionRead or PartitionQuery RPC asynchronously.

Parameters
NameDescription
sessionPooledSession

The session to use for the request.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPartitionResponse

A task representing the asynchronous operation. When the task completes, the result is the response from the RPC.