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, size
modCount
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, toArray
listIterator, removeRange
addAll, remove, removeAll, retainAll, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream
addAll, remove, removeAll, replaceAll, retainAll, sort, spliterator
protected 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.AbstractQueryResult
public void close()
close
in interface org.datanucleus.store.query.QueryResult
close
in class org.datanucleus.store.query.AbstractQueryResult
protected void closeResults()
closeResults
in class org.datanucleus.store.query.AbstractQueryResult
protected int getSizeUsingMethod()
getSizeUsingMethod
in class org.datanucleus.store.query.AbstractQueryResult
public Object get(int index)
protected Object getNextObject()
public boolean contains(Object o)
contains
in interface Collection
contains
in interface List
contains
in class org.datanucleus.store.query.AbstractQueryResult
public boolean containsAll(Collection c)
containsAll
in interface Collection
containsAll
in interface List
containsAll
in class org.datanucleus.store.query.AbstractQueryResult
public Iterator iterator()
public ListIterator listIterator()
listIterator
in interface List
listIterator
in class org.datanucleus.store.query.AbstractQueryResult
public boolean equals(Object o)
equals
in interface Collection
equals
in interface List
equals
in class org.datanucleus.store.query.AbstractQueryResult
public int hashCode()
hashCode
in interface Collection
hashCode
in interface List
hashCode
in class org.datanucleus.store.query.AbstractQueryResult
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException
- Throw if there is a problem in disconnectCopyright © 2016. All rights reserved.