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 is not possible to resume the query, and the whole operation must be restarted from the beginning.
Inheritance
Inherited Members
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
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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
InitParameters()
Initializes PartitionQuery parameter list.
Declaration
protected override void InitParameters()