public class ChunkingIterator<T> extends Object implements com.google.appengine.api.datastore.QueryResultIterator<T>
Constructor and Description |
---|
ChunkingIterator(LoadEngine loadEngine,
com.google.appengine.api.datastore.PreparedQuery pq,
com.google.appengine.api.datastore.QueryResultIterator<Key<T>> source,
int chunkSize) |
Modifier and Type | Method and Description |
---|---|
com.google.appengine.api.datastore.Cursor |
getCursor()
From Alfred Fuller (principal GAE datastore guru):
Calling getCursor() for results in the middle of a batch forces the sdk to run a new query as seen here:
http://code.google.com/p/googleappengine/source/browse/trunk/java/src/main/com/google/appengine/api/datastore/Cursor.java#70
Doing this for every result will definitely give you really bad performance.
|
List<com.google.appengine.api.datastore.Index> |
getIndexList() |
boolean |
hasNext() |
T |
next() |
void |
remove()
Not implemented
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public ChunkingIterator(LoadEngine loadEngine, com.google.appengine.api.datastore.PreparedQuery pq, com.google.appengine.api.datastore.QueryResultIterator<Key<T>> source, int chunkSize)
public com.google.appengine.api.datastore.Cursor getCursor()
getCursor
in interface com.google.appengine.api.datastore.QueryResultIterator<T>
Copyright © 2016. All rights reserved.