public abstract static class CosmosIO.Read<T>
extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<T>>
| Constructor and Description |
|---|
Read() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.beam.sdk.values.PCollection<T> |
expand(org.apache.beam.sdk.values.PBegin input) |
CosmosIO.Read<T> |
withCoder(org.apache.beam.sdk.coders.Coder<T> coder)
Specify the
Coder used to serialize the document in the PCollection. |
CosmosIO.Read<T> |
withContainer(java.lang.String container)
Specify the Cosmos container to read from.
|
CosmosIO.Read<T> |
withDatabase(java.lang.String database)
Specify the Cosmos database to read from.
|
CosmosIO.Read<T> |
withQuery(java.lang.String query)
Specify the query to read data.
|
public CosmosIO.Read<T> withDatabase(java.lang.String database)
public CosmosIO.Read<T> withContainer(java.lang.String container)
public CosmosIO.Read<T> withQuery(java.lang.String query)
public CosmosIO.Read<T> withCoder(org.apache.beam.sdk.coders.Coder<T> coder)
Coder used to serialize the document in the PCollection.