public class LazyLoadQueryResult
extends org.datanucleus.store.query.AbstractQueryResult
| Modifier and Type | Field and Description |
|---|---|
protected List<org.datanucleus.store.mongodb.query.LazyLoadQueryResult.CandidateClassResult> |
candidateResults
Candidate results for this query that have not been (completely) processed yet.
|
protected Iterator<com.mongodb.DBObject> |
currentCursorIterator
Iterator for the DBCursor that is being processed (if any).
|
protected org.datanucleus.ExecutionContext |
ec |
protected Map<Integer,Object> |
itemsByIndex
Map of object, keyed by the index (0, 1, etc).
|
api, closed, connectionListeners, loadResultsAtCommit, query, resultSizeMethod, sizemodCount| Constructor and Description |
|---|
LazyLoadQueryResult(org.datanucleus.store.query.Query q) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCandidateResult(org.datanucleus.metadata.AbstractClassMetaData cmd,
com.mongodb.DBCursor cursor,
int[] fpMembers) |
void |
close() |
protected void |
closeResults() |
protected void |
closingConnection() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
boolean |
equals(Object o) |
Object |
get(int index) |
protected Object |
getNextObject()
Method to extract the next object from the candidateResults (if there is one).
|
boolean |
getOrderProcessed() |
boolean |
getRangeProcessed() |
protected int |
getSizeUsingMethod() |
int |
hashCode() |
Iterator |
iterator() |
ListIterator |
listIterator() |
void |
setOrderProcessed(boolean processed)
Allow the creator to signify that the query order was processed when generating this QueryResult
|
void |
setRangeProcessed(boolean processed)
Allow the creator to signify that the query range was processed when generating this QueryResult
|
protected Object |
writeReplace()
Handle serialisation by returning a java.util.ArrayList of all of the results for this query
after disconnecting the query which has the consequence of enforcing the load of all objects.
|
add, add, addAll, addConnectionListener, assertIsOpen, clear, disconnect, indexOf, isEmpty, isOpen, lastIndexOf, remove, set, size, subList, toArray, toArraylistIterator, removeRangeaddAll, remove, removeAll, retainAll, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, streamaddAll, remove, removeAll, replaceAll, retainAll, sort, spliteratorprotected org.datanucleus.ExecutionContext ec
protected List<org.datanucleus.store.mongodb.query.LazyLoadQueryResult.CandidateClassResult> candidateResults
protected Iterator<com.mongodb.DBObject> currentCursorIterator
public LazyLoadQueryResult(org.datanucleus.store.query.Query q)
public void addCandidateResult(org.datanucleus.metadata.AbstractClassMetaData cmd,
com.mongodb.DBCursor cursor,
int[] fpMembers)
public void setRangeProcessed(boolean processed)
processed - Whether the range was processed when the query was executedpublic boolean getRangeProcessed()
public void setOrderProcessed(boolean processed)
processed - Whether the order was processed when the query was executedpublic boolean getOrderProcessed()
protected void closingConnection()
closingConnection in class org.datanucleus.store.query.AbstractQueryResultpublic void close()
close in interface org.datanucleus.store.query.QueryResultclose in class org.datanucleus.store.query.AbstractQueryResultprotected void closeResults()
closeResults in class org.datanucleus.store.query.AbstractQueryResultprotected int getSizeUsingMethod()
getSizeUsingMethod in class org.datanucleus.store.query.AbstractQueryResultpublic Object get(int index)
protected Object getNextObject()
public boolean contains(Object o)
contains in interface Collectioncontains in interface Listcontains in class org.datanucleus.store.query.AbstractQueryResultpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface ListcontainsAll in class org.datanucleus.store.query.AbstractQueryResultpublic Iterator iterator()
public ListIterator listIterator()
listIterator in interface ListlistIterator in class org.datanucleus.store.query.AbstractQueryResultpublic boolean equals(Object o)
equals in interface Collectionequals in interface Listequals in class org.datanucleus.store.query.AbstractQueryResultpublic int hashCode()
hashCode in interface CollectionhashCode in interface ListhashCode in class org.datanucleus.store.query.AbstractQueryResultprotected Object writeReplace() throws ObjectStreamException
ObjectStreamException - Throw if there is a problem in disconnectCopyright © 2016. All rights reserved.