@Experimental(value=SOURCE_SINK) public abstract static class SpannerIO.ReadAll extends PTransform<PCollection<ReadOperation>,PCollection<com.google.cloud.spanner.Struct>>
SpannerIO.readAll()
.name
Constructor and Description |
---|
ReadAll() |
Modifier and Type | Method and Description |
---|---|
PCollection<com.google.cloud.spanner.Struct> |
expand(PCollection<ReadOperation> input)
Override this method to specify how this
PTransform should be expanded on the given
InputT . |
SpannerIO.ReadAll |
withBatching(boolean batching)
By default Batch API is used to read data from Cloud Spanner.
|
SpannerIO.ReadAll |
withDatabaseId(java.lang.String databaseId)
Specifies the Cloud Spanner database.
|
SpannerIO.ReadAll |
withDatabaseId(ValueProvider<java.lang.String> databaseId)
Specifies the Cloud Spanner database.
|
SpannerIO.ReadAll |
withHost(java.lang.String host) |
SpannerIO.ReadAll |
withHost(ValueProvider<java.lang.String> host)
Specifies the Cloud Spanner host.
|
SpannerIO.ReadAll |
withInstanceId(java.lang.String instanceId)
Specifies the Cloud Spanner instance.
|
SpannerIO.ReadAll |
withInstanceId(ValueProvider<java.lang.String> instanceId)
Specifies the Cloud Spanner instance.
|
SpannerIO.ReadAll |
withProjectId(java.lang.String projectId)
Specifies the Cloud Spanner project.
|
SpannerIO.ReadAll |
withProjectId(ValueProvider<java.lang.String> projectId)
Specifies the Cloud Spanner project.
|
SpannerIO.ReadAll |
withSpannerConfig(SpannerConfig spannerConfig)
Specifies the Cloud Spanner configuration.
|
SpannerIO.ReadAll |
withTimestamp(com.google.cloud.Timestamp timestamp) |
SpannerIO.ReadAll |
withTimestampBound(com.google.cloud.spanner.TimestampBound timestampBound) |
SpannerIO.ReadAll |
withTransaction(PCollectionView<Transaction> transaction) |
getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, populateDisplayData, toString, validate
public SpannerIO.ReadAll withSpannerConfig(SpannerConfig spannerConfig)
public SpannerIO.ReadAll withProjectId(java.lang.String projectId)
public SpannerIO.ReadAll withProjectId(ValueProvider<java.lang.String> projectId)
public SpannerIO.ReadAll withInstanceId(java.lang.String instanceId)
public SpannerIO.ReadAll withInstanceId(ValueProvider<java.lang.String> instanceId)
public SpannerIO.ReadAll withDatabaseId(java.lang.String databaseId)
public SpannerIO.ReadAll withHost(ValueProvider<java.lang.String> host)
public SpannerIO.ReadAll withHost(java.lang.String host)
public SpannerIO.ReadAll withDatabaseId(ValueProvider<java.lang.String> databaseId)
public SpannerIO.ReadAll withTransaction(PCollectionView<Transaction> transaction)
public SpannerIO.ReadAll withTimestamp(com.google.cloud.Timestamp timestamp)
public SpannerIO.ReadAll withTimestampBound(com.google.cloud.spanner.TimestampBound timestampBound)
public SpannerIO.ReadAll withBatching(boolean batching)
public PCollection<com.google.cloud.spanner.Struct> expand(PCollection<ReadOperation> input)
PTransform
PTransform
should be expanded on the given
InputT
.
NOTE: This method should not be called directly. Instead apply the PTransform
should
be applied to the InputT
using the apply
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).
expand
in class PTransform<PCollection<ReadOperation>,PCollection<com.google.cloud.spanner.Struct>>