Class SpannerIO.Read
java.lang.Object
org.apache.beam.sdk.transforms.PTransform<PBegin,PCollection<Struct>>
org.apache.beam.sdk.io.gcp.spanner.SpannerIO.Read
- All Implemented Interfaces:
Serializable
,HasDisplayData
- Enclosing class:
SpannerIO
Implementation of
SpannerIO.read()
.- 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 TypeMethodDescriptionOverride this method to specify how thisPTransform
should be expanded on the givenInputT
.withBatching
(boolean batching) If true the uses Cloud Spanner batch API.withBeamRowConverters
(TypeDescriptor<Struct> typeDescriptor, org.apache.beam.sdk.io.gcp.spanner.SpannerIO.Read.ToBeamRowFunction toRowFn, org.apache.beam.sdk.io.gcp.spanner.SpannerIO.Read.FromBeamRowFunction fromRowFn) withColumns
(String... columns) withColumns
(List<String> columns) 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.withKeySet
(KeySet keySet) withPartitionOptions
(PartitionOptions partitionOptions) Note thatPartitionOptions
are currently ignored.withProjectId
(String projectId) Specifies the Cloud Spanner project.withProjectId
(ValueProvider<String> projectId) Specifies the Cloud Spanner project.withQueryName
(String queryName) withReadOperation
(ReadOperation operation) 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
-
Read
public Read()
-
-
Method Details
-
withBeamRowConverters
public SpannerIO.Read withBeamRowConverters(TypeDescriptor<Struct> typeDescriptor, org.apache.beam.sdk.io.gcp.spanner.SpannerIO.Read.ToBeamRowFunction toRowFn, org.apache.beam.sdk.io.gcp.spanner.SpannerIO.Read.FromBeamRowFunction fromRowFn) -
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. -
withDatabaseId
Specifies the Cloud Spanner database. -
withHost
Specifies the Cloud Spanner host. -
withHost
-
withEmulatorHost
Specifies the Cloud Spanner emulator host. -
withEmulatorHost
-
withBatching
If true the uses Cloud Spanner batch API. -
withTransaction
-
withTimestamp
-
withTimestampBound
-
withTable
-
withReadOperation
-
withColumns
-
withColumns
-
withQuery
-
withQuery
-
withQueryName
-
withKeySet
-
withIndex
-
withPartitionOptions
Note thatPartitionOptions
are currently ignored. See PartitionOptions in RPC documents -
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<PBegin,
PCollection<Struct>>
-