Package net.ontopia.persistence.proxy
Class QueryCollection<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- net.ontopia.persistence.proxy.QueryCollection<E>
-
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
public class QueryCollection<E> extends AbstractCollection<E>
INTERNAL: Immutable Collection implementation that delegates its data retrieval to QueryIFs. This class is very useful in cases where the collection is extremely large.
-
-
Field Summary
Fields Modifier and Type Field Description protected Object[]
params_iterator
protected Object[]
params_size
protected String
query_iterator
protected String
query_size
protected TransactionIF
txn
-
Constructor Summary
Constructors Constructor Description QueryCollection(TransactionIF txn, String query_size, Object[] params_size, String query_iterator, Object[] params_iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(E o)
boolean
addAll(Collection<? extends E> c)
void
clear()
Iterator<E>
iterator()
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
int
size()
-
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Field Detail
-
txn
protected TransactionIF txn
-
query_size
protected String query_size
-
query_iterator
protected String query_iterator
-
params_size
protected Object[] params_size
-
params_iterator
protected Object[] params_iterator
-
-
Constructor Detail
-
QueryCollection
public QueryCollection(TransactionIF txn, String query_size, Object[] params_size, String query_iterator, Object[] params_iterator)
-
-
Method Detail
-
add
public boolean add(E o)
- Specified by:
add
in interfaceCollection<E>
- Overrides:
add
in classAbstractCollection<E>
-
addAll
public boolean addAll(Collection<? extends E> c)
- Specified by:
addAll
in interfaceCollection<E>
- Overrides:
addAll
in classAbstractCollection<E>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<E>
- Overrides:
clear
in classAbstractCollection<E>
-
iterator
public Iterator<E> iterator()
- Specified by:
iterator
in interfaceCollection<E>
- Specified by:
iterator
in interfaceIterable<E>
- Specified by:
iterator
in classAbstractCollection<E>
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<E>
- Overrides:
remove
in classAbstractCollection<E>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<E>
- Overrides:
removeAll
in classAbstractCollection<E>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceCollection<E>
- Overrides:
retainAll
in classAbstractCollection<E>
-
size
public int size()
- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in classAbstractCollection<E>
-
-