public static class DatastoreIO.Write
extends java.lang.Object
PTransform that writes a PCollection<Entity> containing
entities to a Datastore kind.
Current version only supports Write operation running on
DirectPipelineRunner. If Write is used on DataflowPipelineRunner,
it throws UnsupportedOperationException and won't continue on the
operation.
| Modifier and Type | Class and Description |
|---|---|
static class |
DatastoreIO.Write.Bound
A PTransform that writes a bounded
PCollection<Entities>
to a Datastore. |
| Constructor and Description |
|---|
DatastoreIO.Write() |
| Modifier and Type | Method and Description |
|---|---|
static DatastoreIO.Write.Bound |
named(java.lang.String name)
Returns a DatastoreIO.Write PTransform with the name
associated with this PTransform.
|
static DatastoreIO.Write.Bound |
to(java.lang.String datasetId)
Returns a DatastoreIO.Write PTransform with given datasetId.
|
static DatastoreIO.Write.Bound |
withHost(java.lang.String host)
Returns a DatastoreIO.Write PTransform with specified host.
|
public static DatastoreIO.Write.Bound named(java.lang.String name)
public static DatastoreIO.Write.Bound to(java.lang.String datasetId)
public static DatastoreIO.Write.Bound withHost(java.lang.String host)