Package com.db4o.internal.query.result
Class IdListQueryResult
- java.lang.Object
-
- com.db4o.internal.query.result.AbstractQueryResult
-
- com.db4o.internal.query.result.IdListQueryResult
-
- All Implemented Interfaces:
IntVisitor
,Iterable4
,Visitor4
,QueryResult
- Direct Known Subclasses:
ClientQueryResult
public class IdListQueryResult extends AbstractQueryResult implements Visitor4, IntVisitor
-
-
Field Summary
Fields Modifier and Type Field Description IntArrayList
_ids
-
Fields inherited from class com.db4o.internal.query.result.AbstractQueryResult
_transaction
-
-
Constructor Summary
Constructors Constructor Description IdListQueryResult(Transaction trans)
IdListQueryResult(Transaction trans, int initialSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int id)
void
addKeyCheckDuplicates(int a_key)
void
checkDuplicates()
java.lang.Object
get(int index)
int
getId(int index)
int
indexOf(int id)
IntIterator4
iterateIDs()
void
loadFromClassIndex(ClassMetadata clazz)
void
loadFromClassIndexes(ClassMetadataIterator iter)
void
loadFromIdReader(Iterator4 ids)
void
loadFromQuery(QQuery query)
int
size()
void
sort(QueryComparator cmp)
void
sortIds(IntComparator cmp)
void
visit(int id)
void
visit(java.lang.Object a_tree)
-
Methods inherited from class com.db4o.internal.query.result.AbstractQueryResult
activate, activatedObject, config, iterator, knownSize, lock, objectContainer, skip, skip, stream, supportElementAccess, supportSize, supportSort, toIdList, toIdTree, transaction
-
-
-
-
Field Detail
-
_ids
public IntArrayList _ids
-
-
Constructor Detail
-
IdListQueryResult
public IdListQueryResult(Transaction trans, int initialSize)
-
IdListQueryResult
public IdListQueryResult(Transaction trans)
-
-
Method Detail
-
iterateIDs
public IntIterator4 iterateIDs()
- Specified by:
iterateIDs
in interfaceQueryResult
-
get
public java.lang.Object get(int index)
- Specified by:
get
in interfaceQueryResult
- Overrides:
get
in classAbstractQueryResult
-
getId
public int getId(int index)
- Overrides:
getId
in classAbstractQueryResult
-
checkDuplicates
public final void checkDuplicates()
-
visit
public void visit(int id)
- Specified by:
visit
in interfaceIntVisitor
-
addKeyCheckDuplicates
public void addKeyCheckDuplicates(int a_key)
-
sort
public void sort(QueryComparator cmp)
- Specified by:
sort
in interfaceQueryResult
- Overrides:
sort
in classAbstractQueryResult
-
sortIds
public void sortIds(IntComparator cmp)
- Specified by:
sortIds
in interfaceQueryResult
- Overrides:
sortIds
in classAbstractQueryResult
-
loadFromClassIndex
public void loadFromClassIndex(ClassMetadata clazz)
- Overrides:
loadFromClassIndex
in classAbstractQueryResult
-
loadFromQuery
public void loadFromQuery(QQuery query)
- Overrides:
loadFromQuery
in classAbstractQueryResult
-
loadFromClassIndexes
public void loadFromClassIndexes(ClassMetadataIterator iter)
- Overrides:
loadFromClassIndexes
in classAbstractQueryResult
-
loadFromIdReader
public void loadFromIdReader(Iterator4 ids)
- Overrides:
loadFromIdReader
in classAbstractQueryResult
-
add
public void add(int id)
-
indexOf
public int indexOf(int id)
- Specified by:
indexOf
in interfaceQueryResult
- Overrides:
indexOf
in classAbstractQueryResult
-
size
public int size()
- Specified by:
size
in interfaceQueryResult
- Overrides:
size
in classAbstractQueryResult
-
-