gogol-spanner-0.4.0: Google Cloud Spanner SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.PartitionRead

Contents

Description

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

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

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
Eq ProjectsInstancesDatabasesSessionsPartitionRead Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.PartitionRead

Data ProjectsInstancesDatabasesSessionsPartitionRead Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.PartitionRead

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsInstancesDatabasesSessionsPartitionRead -> c ProjectsInstancesDatabasesSessionsPartitionRead #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsInstancesDatabasesSessionsPartitionRead #

toConstr :: ProjectsInstancesDatabasesSessionsPartitionRead -> Constr #

dataTypeOf :: ProjectsInstancesDatabasesSessionsPartitionRead -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsInstancesDatabasesSessionsPartitionRead) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsInstancesDatabasesSessionsPartitionRead) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsInstancesDatabasesSessionsPartitionRead -> ProjectsInstancesDatabasesSessionsPartitionRead #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsInstancesDatabasesSessionsPartitionRead -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsInstancesDatabasesSessionsPartitionRead -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsInstancesDatabasesSessionsPartitionRead -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsInstancesDatabasesSessionsPartitionRead -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsInstancesDatabasesSessionsPartitionRead -> m ProjectsInstancesDatabasesSessionsPartitionRead #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsInstancesDatabasesSessionsPartitionRead -> m ProjectsInstancesDatabasesSessionsPartitionRead #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsInstancesDatabasesSessionsPartitionRead -> m ProjectsInstancesDatabasesSessionsPartitionRead #

Show ProjectsInstancesDatabasesSessionsPartitionRead Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.PartitionRead

Generic ProjectsInstancesDatabasesSessionsPartitionRead Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.PartitionRead

GoogleRequest ProjectsInstancesDatabasesSessionsPartitionRead Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.PartitionRead

type Rep ProjectsInstancesDatabasesSessionsPartitionRead Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.PartitionRead

type Rep ProjectsInstancesDatabasesSessionsPartitionRead = D1 (MetaData "ProjectsInstancesDatabasesSessionsPartitionRead" "Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.PartitionRead" "gogol-spanner-0.4.0-Gx6Dlj0rchWGrfXCDHk4fo" False) (C1 (MetaCons "ProjectsInstancesDatabasesSessionsPartitionRead'" PrefixI True) ((S1 (MetaSel (Just "_pidsprXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pidsprUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidsprAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pidsprUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidsprPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PartitionReadRequest)) :*: (S1 (MetaSel (Just "_pidsprSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pidsprCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsInstancesDatabasesSessionsPartitionRead Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.PartitionRead

type Scopes ProjectsInstancesDatabasesSessionsPartitionRead = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/spanner.data" ': ([] :: [Symbol]))
type Rs ProjectsInstancesDatabasesSessionsPartitionRead Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.PartitionRead

Request Lenses

pidsprUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsPartitionRead (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

pidsprUploadType :: Lens' ProjectsInstancesDatabasesSessionsPartitionRead (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

pidsprSession :: Lens' ProjectsInstancesDatabasesSessionsPartitionRead Text Source #

Required. The session used to create the partitions.