Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
See: Cloud Spanner API Reference for spanner.projects.instances.databases.sessions.partitionQuery
.
Synopsis
- type ProjectsInstancesDatabasesSessionsPartitionQueryResource = "v1" :> (CaptureMode "session" "partitionQuery" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PartitionQueryRequest :> Post '[JSON] PartitionResponse))))))))
- projectsInstancesDatabasesSessionsPartitionQuery :: PartitionQueryRequest -> Text -> ProjectsInstancesDatabasesSessionsPartitionQuery
- data ProjectsInstancesDatabasesSessionsPartitionQuery
- pidspqXgafv :: Lens' ProjectsInstancesDatabasesSessionsPartitionQuery (Maybe Xgafv)
- pidspqUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsPartitionQuery (Maybe Text)
- pidspqAccessToken :: Lens' ProjectsInstancesDatabasesSessionsPartitionQuery (Maybe Text)
- pidspqUploadType :: Lens' ProjectsInstancesDatabasesSessionsPartitionQuery (Maybe Text)
- pidspqPayload :: Lens' ProjectsInstancesDatabasesSessionsPartitionQuery PartitionQueryRequest
- pidspqSession :: Lens' ProjectsInstancesDatabasesSessionsPartitionQuery Text
- pidspqCallback :: Lens' ProjectsInstancesDatabasesSessionsPartitionQuery (Maybe Text)
REST Resource
type ProjectsInstancesDatabasesSessionsPartitionQueryResource = "v1" :> (CaptureMode "session" "partitionQuery" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PartitionQueryRequest :> Post '[JSON] PartitionResponse)))))))) Source #
A resource alias for spanner.projects.instances.databases.sessions.partitionQuery
method which the
ProjectsInstancesDatabasesSessionsPartitionQuery
request conforms to.
Creating a Request
projectsInstancesDatabasesSessionsPartitionQuery Source #
Creates a value of ProjectsInstancesDatabasesSessionsPartitionQuery
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesDatabasesSessionsPartitionQuery Source #
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.
See: projectsInstancesDatabasesSessionsPartitionQuery
smart constructor.
Instances
Request Lenses
pidspqXgafv :: Lens' ProjectsInstancesDatabasesSessionsPartitionQuery (Maybe Xgafv) Source #
V1 error format.
pidspqUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsPartitionQuery (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pidspqAccessToken :: Lens' ProjectsInstancesDatabasesSessionsPartitionQuery (Maybe Text) Source #
OAuth access token.
pidspqUploadType :: Lens' ProjectsInstancesDatabasesSessionsPartitionQuery (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pidspqPayload :: Lens' ProjectsInstancesDatabasesSessionsPartitionQuery PartitionQueryRequest Source #
Multipart request metadata.
pidspqSession :: Lens' ProjectsInstancesDatabasesSessionsPartitionQuery Text Source #
Required. The session used to create the partitions.