Class SpannerIO.ReadAll
java.lang.Object
org.apache.beam.sdk.transforms.PTransform<PCollection<ReadOperation>,PCollection<Struct>>
org.apache.beam.sdk.io.gcp.spanner.SpannerIO.ReadAll
- All Implemented Interfaces:
Serializable
,HasDisplayData
- Enclosing class:
SpannerIO
public abstract static class SpannerIO.ReadAll
extends PTransform<PCollection<ReadOperation>,PCollection<Struct>>
Implementation of
SpannerIO.readAll()
.- See Also:
-
Field Summary
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexpand
(PCollection<ReadOperation> input) Override this method to specify how thisPTransform
should be expanded on the givenInputT
.withBatching
(boolean batching) By default the PartitionQuery API is used to read data from Cloud Spanner.withDatabaseId
(String databaseId) Specifies the Cloud Spanner database.withDatabaseId
(ValueProvider<String> databaseId) Specifies the Cloud Spanner database.withEmulatorHost
(String emulatorHost) withEmulatorHost
(ValueProvider<String> emulatorHost) Specifies the Cloud Spanner emulator host.withHost
(ValueProvider<String> host) Specifies the Cloud Spanner host.withInstanceId
(String instanceId) Specifies the Cloud Spanner instance.withInstanceId
(ValueProvider<String> instanceId) Specifies the Cloud Spanner instance.withProjectId
(String projectId) Specifies the Cloud Spanner project.withProjectId
(ValueProvider<String> projectId) Specifies the Cloud Spanner project.withSpannerConfig
(SpannerConfig spannerConfig) Specifies the Cloud Spanner configuration.withTimestamp
(com.google.cloud.Timestamp timestamp) withTimestampBound
(TimestampBound timestampBound) withTransaction
(PCollectionView<Transaction> transaction) Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setDisplayData, setResourceHints, toString, validate, validate
-
Constructor Details
-
ReadAll
public ReadAll()
-
-
Method Details
-
withSpannerConfig
Specifies the Cloud Spanner configuration. -
withProjectId
Specifies the Cloud Spanner project. -
withProjectId
Specifies the Cloud Spanner project. -
withInstanceId
Specifies the Cloud Spanner instance. -
withInstanceId
Specifies the Cloud Spanner instance. -
withDatabaseId
Specifies the Cloud Spanner database. -
withHost
Specifies the Cloud Spanner host. -
withHost
-
withEmulatorHost
Specifies the Cloud Spanner emulator host. -
withEmulatorHost
-
withDatabaseId
Specifies the Cloud Spanner database. -
withTransaction
-
withTimestamp
-
withTimestampBound
-
withBatching
By default the PartitionQuery API is used to read data from Cloud Spanner. It is useful to disable batching when the underlying query is not root-partitionable. -
withLowPriority
-
withHighPriority
-
expand
Description copied from class:PTransform
Override this method to specify how thisPTransform
should be expanded on the givenInputT
.NOTE: This method should not be called directly. Instead apply the
PTransform
should be applied to theInputT
using theapply
method.Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
- Specified by:
expand
in classPTransform<PCollection<ReadOperation>,
PCollection<Struct>>
-