public abstract static class SpannerIO.ReadAll extends PTransform<PCollection<ReadOperation>,PCollection<Struct>>
SpannerIO.readAll()
.name, resourceHints
Constructor and Description |
---|
ReadAll() |
Modifier and Type | Method and Description |
---|---|
PCollection<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 |
withEmulatorHost(java.lang.String emulatorHost) |
SpannerIO.ReadAll |
withEmulatorHost(ValueProvider<java.lang.String> emulatorHost)
Specifies the Cloud Spanner emulator host.
|
SpannerIO.ReadAll |
withHighPriority() |
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 |
withLowPriority() |
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(TimestampBound timestampBound) |
SpannerIO.ReadAll |
withTransaction(PCollectionView<Transaction> transaction) |
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setResourceHints, 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 withEmulatorHost(ValueProvider<java.lang.String> emulatorHost)
public SpannerIO.ReadAll withEmulatorHost(java.lang.String emulatorHost)
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(TimestampBound timestampBound)
public SpannerIO.ReadAll withBatching(boolean batching)
public SpannerIO.ReadAll withLowPriority()
public SpannerIO.ReadAll withHighPriority()
public PCollection<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<Struct>>