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 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.
See: Cloud Spanner API Reference for spanner.projects.instances.databases.sessions.partitionRead
.
Synopsis
- type ProjectsInstancesDatabasesSessionsPartitionReadResource = "v1" :> (CaptureMode "session" "partitionRead" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PartitionReadRequest :> Post '[JSON] PartitionResponse))))))))
- projectsInstancesDatabasesSessionsPartitionRead :: PartitionReadRequest -> Text -> ProjectsInstancesDatabasesSessionsPartitionRead
- data ProjectsInstancesDatabasesSessionsPartitionRead
- pidsprXgafv :: Lens' ProjectsInstancesDatabasesSessionsPartitionRead (Maybe Xgafv)
- pidsprUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsPartitionRead (Maybe Text)
- pidsprAccessToken :: Lens' ProjectsInstancesDatabasesSessionsPartitionRead (Maybe Text)
- pidsprUploadType :: Lens' ProjectsInstancesDatabasesSessionsPartitionRead (Maybe Text)
- pidsprPayload :: Lens' ProjectsInstancesDatabasesSessionsPartitionRead PartitionReadRequest
- pidsprSession :: Lens' ProjectsInstancesDatabasesSessionsPartitionRead Text
- pidsprCallback :: Lens' ProjectsInstancesDatabasesSessionsPartitionRead (Maybe Text)
REST Resource
type ProjectsInstancesDatabasesSessionsPartitionReadResource = "v1" :> (CaptureMode "session" "partitionRead" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PartitionReadRequest :> Post '[JSON] PartitionResponse)))))))) Source #
A resource alias for spanner.projects.instances.databases.sessions.partitionRead
method which the
ProjectsInstancesDatabasesSessionsPartitionRead
request conforms to.
Creating a Request
projectsInstancesDatabasesSessionsPartitionRead Source #
Creates a value of ProjectsInstancesDatabasesSessionsPartitionRead
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesDatabasesSessionsPartitionRead Source #
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.
See: projectsInstancesDatabasesSessionsPartitionRead
smart constructor.
Instances
Request Lenses
pidsprXgafv :: Lens' ProjectsInstancesDatabasesSessionsPartitionRead (Maybe Xgafv) Source #
V1 error format.
pidsprUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsPartitionRead (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pidsprAccessToken :: Lens' ProjectsInstancesDatabasesSessionsPartitionRead (Maybe Text) Source #
OAuth access token.
pidsprUploadType :: Lens' ProjectsInstancesDatabasesSessionsPartitionRead (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pidsprPayload :: Lens' ProjectsInstancesDatabasesSessionsPartitionRead PartitionReadRequest Source #
Multipart request metadata.
pidsprSession :: Lens' ProjectsInstancesDatabasesSessionsPartitionRead Text Source #
Required. The session used to create the partitions.