Show / Hide Table of Contents

Class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.PartitionReadRequest

Creates a set of partition tokens that can be used to execute a read operation in parallel. Each of the returned partition tokens can be used by StreamingRead to specify a subset of the read result to read. The same session and read-only transaction must be used by the PartitionReadRequest used to create the partition tokens and the ReadRequests that use the partition tokens. There are no ordering guarantees on rows returned among the returned partition tokens, or even within each individual StreamingRead call issued with a partition_token. Partition tokens become invalid when the session used to create them is deleted, is idle for too long, begins a new transaction, or becomes too old. When any of these happen, it is not possible to resume the read, and the whole operation must be restarted from the beginning.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<PartitionResponse>
SpannerBaseServiceRequest<PartitionResponse>
ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.PartitionReadRequest
Implements
IClientServiceRequest<PartitionResponse>
IClientServiceRequest
Inherited Members
SpannerBaseServiceRequest<PartitionResponse>.Xgafv
SpannerBaseServiceRequest<PartitionResponse>.AccessToken
SpannerBaseServiceRequest<PartitionResponse>.Alt
SpannerBaseServiceRequest<PartitionResponse>.Callback
SpannerBaseServiceRequest<PartitionResponse>.Fields
SpannerBaseServiceRequest<PartitionResponse>.Key
SpannerBaseServiceRequest<PartitionResponse>.OauthToken
SpannerBaseServiceRequest<PartitionResponse>.PrettyPrint
SpannerBaseServiceRequest<PartitionResponse>.QuotaUser
SpannerBaseServiceRequest<PartitionResponse>.UploadType
SpannerBaseServiceRequest<PartitionResponse>.UploadProtocol
ClientServiceRequest<PartitionResponse>.Execute()
ClientServiceRequest<PartitionResponse>.ExecuteAsStream()
ClientServiceRequest<PartitionResponse>.ExecuteAsync()
ClientServiceRequest<PartitionResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<PartitionResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<PartitionResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<PartitionResponse>.CreateRequest(bool?)
ClientServiceRequest<PartitionResponse>.GenerateRequestUri()
ClientServiceRequest<PartitionResponse>.GetDefaultETagAction(string)
ClientServiceRequest<PartitionResponse>.ETagAction
ClientServiceRequest<PartitionResponse>.ModifyRequest
ClientServiceRequest<PartitionResponse>.ValidateParameters
ClientServiceRequest<PartitionResponse>.RequestParameters
ClientServiceRequest<PartitionResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.PartitionReadRequest : SpannerBaseServiceRequest<PartitionResponse>, IClientServiceRequest<PartitionResponse>, IClientServiceRequest

Constructors

PartitionReadRequest(IClientService, PartitionReadRequest, string)

Constructs a new PartitionRead request.

Declaration
public PartitionReadRequest(IClientService service, PartitionReadRequest body, string session)
Parameters
Type Name Description
IClientService service
PartitionReadRequest body
string session

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Spanner.v1.Data.PartitionResponse>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Spanner.v1.Data.PartitionResponse>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Spanner.v1.Data.PartitionResponse>.RestPath

Session

Required. The session used to create the partitions.

Declaration
[RequestParameter("session", RequestParameterType.Path)]
public virtual string Session { get; }
Property Value
Type Description
string

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Spanner.v1.Data.PartitionResponse>.GetBody()

InitParameters()

Initializes PartitionRead parameter list.

Declaration
protected override void InitParameters()
Overrides
SpannerBaseServiceRequest<PartitionResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In This Article
Back to top Generated by DocFX