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 thisPTransformshould 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.withExperimentalHost(String experimentalHost) withExperimentalHost(ValueProvider<String> experimentalHost) Specifies the SpannerOptions experimental host (setExperimentalHost).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) withUsingPlainTextChannel(boolean plainText) Specifies whether to use plaintext channel.withUsingPlainTextChannel(ValueProvider<Boolean> plainText) Specifies whether to use plaintext channel.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
-
withExperimentalHost
Specifies the SpannerOptions experimental host (setExperimentalHost). -
withExperimentalHost
-
withUsingPlainTextChannel
Specifies whether to use plaintext channel.Note: This parameter is only valid when using an experimental host (set via
withExperimentalHost). -
withUsingPlainTextChannel
Specifies whether to use plaintext channel.Note: This parameter is only valid when using an experimental host (set via
withExperimentalHost). -
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:PTransformOverride this method to specify how thisPTransformshould be expanded on the givenInputT.NOTE: This method should not be called directly. Instead apply the
PTransformshould be applied to theInputTusing theapplymethod.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:
expandin classPTransform<PCollection<ReadOperation>,PCollection<Struct>>
-