public abstract static class SpannerIO.Read extends PTransform<PBegin,PCollection<Struct>>
SpannerIO.read()
.name, resourceHints
Constructor and Description |
---|
Read() |
Modifier and Type | Method and Description |
---|---|
PCollection<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 |
withEmulatorHost(java.lang.String emulatorHost) |
SpannerIO.Read |
withEmulatorHost(ValueProvider<java.lang.String> emulatorHost)
Specifies the Cloud Spanner emulator host.
|
SpannerIO.Read |
withHighPriority() |
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(KeySet keySet) |
SpannerIO.Read |
withLowPriority() |
SpannerIO.Read |
withPartitionOptions(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(Statement statement) |
SpannerIO.Read |
withQuery(java.lang.String sql) |
SpannerIO.Read |
withQueryName(java.lang.String queryName) |
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(TimestampBound timestampBound) |
SpannerIO.Read |
withTransaction(PCollectionView<Transaction> transaction) |
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setResourceHints, 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 withEmulatorHost(ValueProvider<java.lang.String> emulatorHost)
public SpannerIO.Read withEmulatorHost(java.lang.String emulatorHost)
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(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(Statement statement)
public SpannerIO.Read withQuery(java.lang.String sql)
public SpannerIO.Read withQueryName(java.lang.String queryName)
public SpannerIO.Read withKeySet(KeySet keySet)
public SpannerIO.Read withIndex(java.lang.String index)
public SpannerIO.Read withPartitionOptions(PartitionOptions partitionOptions)
public SpannerIO.Read withLowPriority()
public SpannerIO.Read withHighPriority()
public PCollection<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<Struct>>