Show / Hide Table of Contents

Class ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.PartitionQueryRequest

Creates a set of partition tokens that can be used to execute a query operation in parallel. Each of the returned partition tokens can be used by ExecuteStreamingSql to specify a subset of the query result to read. The same session and read-only transaction must be used by the PartitionQueryRequest used to create the partition tokens and the ExecuteSqlRequests that use the partition tokens. 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 isn't possible to resume the query, and the whole operation must be restarted from the beginning.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<PartitionResponse>
SpannerBaseServiceRequest<PartitionResponse>
ProjectsResource.InstancesResource.DatabasesResource.SessionsResource.PartitionQueryRequest
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>.ApiVersion
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.PartitionQueryRequest : SpannerBaseServiceRequest<PartitionResponse>, IClientServiceRequest<PartitionResponse>, IClientServiceRequest

Constructors

PartitionQueryRequest(IClientService, PartitionQueryRequest, string)

Constructs a new PartitionQuery request.

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

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<PartitionResponse>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<PartitionResponse>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<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
ClientServiceRequest<PartitionResponse>.GetBody()

InitParameters()

Initializes PartitionQuery parameter list.

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

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX