Class InMemoryQueryResult
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
org.datanucleus.store.query.inmemory.InMemoryQueryResult
- All Implemented Interfaces:
Serializable, Iterable, Collection, List, QueryResult
Simple wrapper to results generated by the in-memory query process suitable for use by JDO/JPA.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) ApiAdapterprotected booleanWhether the results are close.(package private) Listprivate static final longFields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection c) booleanaddAll(Collection c) protected voidInternal method to throw an Exception if the ResultSet is open.voidclear()voidclose()Method to close the results, making them unusable thereafter.booleanbooleanvoidMethod to disconnect the results from the ExecutionContext, meaning that thereafter it just behaves like a List.get(int index) intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanbooleanintsize()subList(int fromIndex, int toIndex) Object[]toArray()Object[]Methods inherited from class AbstractList
equals, hashCode, removeRangeMethods inherited from class AbstractCollection
toStringMethods inherited from interface Collection
parallelStream, removeIf, streamMethods inherited from interface List
replaceAll, sort, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
api
ApiAdapter api -
results
List results -
closed
protected boolean closedWhether the results are close.
-
-
Constructor Details
-
InMemoryQueryResult
-
-
Method Details
-
close
public void close()Description copied from interface:QueryResultMethod to close the results, making them unusable thereafter.- Specified by:
closein interfaceQueryResult
-
disconnect
public void disconnect()Description copied from interface:QueryResultMethod to disconnect the results from the ExecutionContext, meaning that thereafter it just behaves like a List.- Specified by:
disconnectin interfaceQueryResult
-
contains
- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceList- Overrides:
containsin classAbstractCollection
-
containsAll
- Specified by:
containsAllin interfaceCollection- Specified by:
containsAllin interfaceList- Overrides:
containsAllin classAbstractCollection
-
get
- Specified by:
getin interfaceList- Specified by:
getin classAbstractList
-
indexOf
- Specified by:
indexOfin interfaceList- Overrides:
indexOfin classAbstractList
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection- Specified by:
isEmptyin interfaceList- Overrides:
isEmptyin classAbstractCollection
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList- Overrides:
lastIndexOfin classAbstractList
-
subList
- Specified by:
subListin interfaceList- Overrides:
subListin classAbstractList
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList- Overrides:
toArrayin classAbstractCollection
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList- Overrides:
toArrayin classAbstractCollection
-
size
public int size()- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList- Specified by:
sizein classAbstractCollection
-
iterator
- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable- Specified by:
iteratorin interfaceList- Overrides:
iteratorin classAbstractList
-
listIterator
- Specified by:
listIteratorin interfaceList- Overrides:
listIteratorin classAbstractList
-
listIterator
- Specified by:
listIteratorin interfaceList- Overrides:
listIteratorin classAbstractList
-
assertIsOpen
protected void assertIsOpen()Internal method to throw an Exception if the ResultSet is open. -
addAll
- Specified by:
addAllin interfaceList- Overrides:
addAllin classAbstractList
-
addAll
- Specified by:
addAllin interfaceCollection- Specified by:
addAllin interfaceList- Overrides:
addAllin classAbstractCollection
-
add
- Specified by:
addin interfaceCollection- Specified by:
addin interfaceList- Overrides:
addin classAbstractList
-
add
- Specified by:
addin interfaceList- Overrides:
addin classAbstractList
-
clear
public void clear()- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceList- Overrides:
clearin classAbstractList
-
remove
- Specified by:
removein interfaceList- Overrides:
removein classAbstractList
-
remove
- Specified by:
removein interfaceCollection- Specified by:
removein interfaceList- Overrides:
removein classAbstractCollection
-
removeAll
- Specified by:
removeAllin interfaceCollection- Specified by:
removeAllin interfaceList- Overrides:
removeAllin classAbstractCollection
-
retainAll
- Specified by:
retainAllin interfaceCollection- Specified by:
retainAllin interfaceList- Overrides:
retainAllin classAbstractCollection
-
set
-