public static class DatastoreIO.Sink extends Sink<com.google.api.services.datastore.DatastoreV1.Entity>
Sink.WriteOperation<T,WriteT>, Sink.Writer<T,WriteT>| Modifier | Constructor and Description |
|---|---|
protected |
Sink(String host,
String datasetId)
Constructs a Sink with given host and dataset.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.cloud.dataflow.sdk.io.DatastoreIO.DatastoreWriteOperation |
createWriteOperation(PipelineOptions options)
Returns an instance of a
Sink.WriteOperation that can write to this Sink. |
void |
validate(PipelineOptions options)
Ensures the host and dataset are set.
|
DatastoreIO.Sink |
withDataset(String datasetId)
Returns a
Sink that is like this one, but will write to the specified dataset. |
DatastoreIO.Sink |
withHost(String host)
Returns a
Sink that is like this one, but will use the given host. |
public DatastoreIO.Sink withDataset(String datasetId)
Sink that is like this one, but will write to the specified dataset.public DatastoreIO.Sink withHost(String host)
Sink that is like this one, but will use the given host. If not specified,
the default host will be used.public void validate(PipelineOptions options)
public com.google.cloud.dataflow.sdk.io.DatastoreIO.DatastoreWriteOperation createWriteOperation(PipelineOptions options)
SinkSink.WriteOperation that can write to this Sink.createWriteOperation in class Sink<com.google.api.services.datastore.DatastoreV1.Entity>