public class DatastoreKeyInputReader extends InputReader<V>
| Constructor and Description |
|---|
DatastoreKeyInputReader(com.google.appengine.api.datastore.Query query) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginShard()
Performs setup at the beginning of the shard.
|
void |
beginSlice()
Prepares the
InputReader for reading, after possibly having gone
through serialization and deserialization. |
void |
endSlice()
Prepares the
InputReader for serialization. |
long |
estimateMemoryRequirement()
Returns the estimated memory that will be used by this reader in bytes.
|
protected long |
getAvgElementSize() |
Double |
getProgress()
Returns the relative progress reading this input as a number from 0 to 1.
|
V |
next()
Returns the next input value, or throws
NoSuchElementException
when there is no more input data. |
String |
toString() |
close, endShard, getContext, open, setContextpublic DatastoreKeyInputReader(com.google.appengine.api.datastore.Query query)
protected long getAvgElementSize()
public V next()
InputReaderNoSuchElementException
when there is no more input data. This is done rather than providing a
hasNext() function, to allow the implementation to deal with streams and
remain serializable, even if the item being read is not.next in class InputReader<V>public Double getProgress()
InputReadergetProgress in class InputReader<V>public void beginShard()
InputReaderInputReader.beginSlice(). It will not be invoked again unless the shard restarts. When a shard is
restarted, this method is invoked and the input should be read from the beginning.beginShard in class InputReader<V>public void endSlice()
InputReaderInputReader for serialization.endSlice in class InputReader<V>public void beginSlice()
InputReaderInputReader for reading, after possibly having gone
through serialization and deserialization.beginSlice in class InputReader<V>public long estimateMemoryRequirement()
InputReaderestimateMemoryRequirement in class InputReader<V>Copyright © 2015 Google. All rights reserved.