public abstract static class SpannerIO.Read extends PTransform<PBegin,PCollection<com.google.cloud.spanner.Struct>>
SpannerIO.read()
.name
Constructor and Description |
---|
Read() |
Modifier and Type | Method and Description |
---|---|
PCollection<com.google.cloud.spanner.Struct> |
expand(PBegin input)
Override this method to specify how this
PTransform should be expanded on the given
InputT . |
SpannerIO.Read |
withBatching(boolean batching)
If true the uses Cloud Spanner batch API.
|
SpannerIO.Read |
withColumns(java.util.List<java.lang.String> columns) |
SpannerIO.Read |
withColumns(java.lang.String... columns) |
SpannerIO.Read |
withDatabaseId(java.lang.String databaseId)
Specifies the Cloud Spanner database.
|
SpannerIO.Read |
withDatabaseId(ValueProvider<java.lang.String> databaseId)
Specifies the Cloud Spanner database.
|
SpannerIO.Read |
withHost(java.lang.String host) |
SpannerIO.Read |
withHost(ValueProvider<java.lang.String> host)
Specifies the Cloud Spanner host.
|
SpannerIO.Read |
withIndex(java.lang.String index) |
SpannerIO.Read |
withInstanceId(java.lang.String instanceId)
Specifies the Cloud Spanner instance.
|
SpannerIO.Read |
withInstanceId(ValueProvider<java.lang.String> instanceId)
Specifies the Cloud Spanner instance.
|
SpannerIO.Read |
withKeySet(com.google.cloud.spanner.KeySet keySet) |
SpannerIO.Read |
withPartitionOptions(com.google.cloud.spanner.PartitionOptions partitionOptions) |
SpannerIO.Read |
withProjectId(java.lang.String projectId)
Specifies the Cloud Spanner project.
|
SpannerIO.Read |
withProjectId(ValueProvider<java.lang.String> projectId)
Specifies the Cloud Spanner project.
|
SpannerIO.Read |
withQuery(com.google.cloud.spanner.Statement statement) |
SpannerIO.Read |
withQuery(java.lang.String sql) |
SpannerIO.Read |
withReadOperation(ReadOperation operation) |
SpannerIO.Read |
withSpannerConfig(SpannerConfig spannerConfig)
Specifies the Cloud Spanner configuration.
|
SpannerIO.Read |
withTable(java.lang.String table) |
SpannerIO.Read |
withTimestamp(com.google.cloud.Timestamp timestamp) |
SpannerIO.Read |
withTimestampBound(com.google.cloud.spanner.TimestampBound timestampBound) |
SpannerIO.Read |
withTransaction(PCollectionView<Transaction> transaction) |
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, populateDisplayData, toString, validate
public SpannerIO.Read withSpannerConfig(SpannerConfig spannerConfig)
public SpannerIO.Read withProjectId(java.lang.String projectId)
public SpannerIO.Read withProjectId(ValueProvider<java.lang.String> projectId)
public SpannerIO.Read withInstanceId(java.lang.String instanceId)
public SpannerIO.Read withInstanceId(ValueProvider<java.lang.String> instanceId)
public SpannerIO.Read withDatabaseId(java.lang.String databaseId)
public SpannerIO.Read withDatabaseId(ValueProvider<java.lang.String> databaseId)
public SpannerIO.Read withHost(ValueProvider<java.lang.String> host)
public SpannerIO.Read withHost(java.lang.String host)
public SpannerIO.Read withBatching(boolean batching)
public SpannerIO.Read withTransaction(PCollectionView<Transaction> transaction)
public SpannerIO.Read withTimestamp(com.google.cloud.Timestamp timestamp)
public SpannerIO.Read withTimestampBound(com.google.cloud.spanner.TimestampBound timestampBound)
public SpannerIO.Read withTable(java.lang.String table)
public SpannerIO.Read withReadOperation(ReadOperation operation)
public SpannerIO.Read withColumns(java.lang.String... columns)
public SpannerIO.Read withColumns(java.util.List<java.lang.String> columns)
public SpannerIO.Read withQuery(com.google.cloud.spanner.Statement statement)
public SpannerIO.Read withQuery(java.lang.String sql)
public SpannerIO.Read withKeySet(com.google.cloud.spanner.KeySet keySet)
public SpannerIO.Read withIndex(java.lang.String index)
public SpannerIO.Read withPartitionOptions(com.google.cloud.spanner.PartitionOptions partitionOptions)
public PCollection<com.google.cloud.spanner.Struct> expand(PBegin 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<PBegin,PCollection<com.google.cloud.spanner.Struct>>