abstract class AbstractEndToEndTupleList extends AbstractTupleList
TupleList
that stores
tuples in end-to-end format.
For example, if the arity is 3, the tuples {(A1, B1, C1), (A1, B2, C2)} will be stored as {A1, B1, C1, A2, B2, C2}. This is memory-efficient (only one array, compared to 3 arrays or one array per tuple in other representations), has good locality of reference, and typical operations require few indirections.
Concrete subclasses can store the data in various backing lists.
AbstractTupleList.AbstractTupleListIterator
TupleList.PositionCallback
arity, mutable
modCount
Constructor and Description |
---|
AbstractEndToEndTupleList(int arity) |
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(Collection<? extends List<Member>> c) |
boolean |
addAll(int i,
Collection<? extends List<Member>> c) |
protected abstract List<Member> |
backingList() |
TupleList |
project(int[] destIndices) |
List<Member> |
set(int index,
List<Member> element) |
TupleList |
subList(int fromIndex,
int toIndex) |
TupleList |
withPositionCallback(TupleList.PositionCallback positionCallback) |
addCurrent, fix, get, getArity, iterator, tupleCursor, tupleIterator, tupleIteratorInternal
add, add, clear, equals, get, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange
contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public TupleList project(int[] destIndices)
public boolean addAll(Collection<? extends List<Member>> c)
public boolean addAll(int i, Collection<? extends List<Member>> c)
public TupleList subList(int fromIndex, int toIndex)
public TupleList withPositionCallback(TupleList.PositionCallback positionCallback)