Class PartitionReadOrQueryRequest (4.0.0)

public sealed 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
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
Int32
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
Task<PartitionResponse>

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