public class DatastoreOutput extends Output<com.google.appengine.api.datastore.Entity,Void>
Output that writes Entitys 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, setContextpublic DatastoreOutput()
public DatastoreOutput(DatastoreMutationPool.Params poolParams)
public List<DatastoreOutput.DatastoreOutputWriter> createWriters(int numShards)
OutputcreateWriters in class Output<com.google.appengine.api.datastore.Entity,Void>numShards - The number of shards which should be equal to the number of
OutputWriters returned.public Void finish(Collection<? extends OutputWriter<com.google.appengine.api.datastore.Entity>> writers)
Copyright © 2015 Google. All rights reserved.