public class DatastoreOutput extends Output<com.google.appengine.api.datastore.Entity,Void>
Output
that writes Entity
s to the Datastore.Modifier and Type | Class and Description |
---|---|
static class |
DatastoreOutput.DatastoreOutputWriter |
Constructor and Description |
---|
DatastoreOutput() |
DatastoreOutput(DatastoreMutationPool.Params poolParams) |
Modifier and Type | Method and Description |
---|---|
List<DatastoreOutput.DatastoreOutputWriter> |
createWriters(int numShards)
Returns a list of writers, one for each shard, for this output.
|
Void |
finish(Collection<? extends OutputWriter<com.google.appengine.api.datastore.Entity>> writers)
Returns null.
|
getContext, setContext
public DatastoreOutput()
public DatastoreOutput(DatastoreMutationPool.Params poolParams)
public List<DatastoreOutput.DatastoreOutputWriter> createWriters(int numShards)
Output
createWriters
in class Output<com.google.appengine.api.datastore.Entity,Void>
numShards
- The number of shards which should be equal to the number of
OutputWriter
s returned.public Void finish(Collection<? extends OutputWriter<com.google.appengine.api.datastore.Entity>> writers)
Copyright © 2015 Google. All rights reserved.