public abstract class AbstractTupleList extends AbstractList<List<Member>> implements RandomAccess, Cloneable, TupleList
TupleList
.Modifier and Type | Class and Description |
---|---|
protected class |
AbstractTupleList.AbstractTupleListIterator
Implementation of
TupleIterator for
ArrayTupleList . |
TupleList.PositionCallback
Modifier and Type | Field and Description |
---|---|
protected int |
arity |
protected boolean |
mutable |
modCount
Constructor and Description |
---|
AbstractTupleList(int arity) |
Modifier and Type | Method and Description |
---|---|
void |
addCurrent(TupleCursor tupleIter) |
TupleList |
fix()
Fixes the tuples of this list, so that their contents will not change
even if elements of the list are reordered or removed.
|
Member |
get(int slice,
int index)
Returns a particular column of a particular row.
|
int |
getArity()
Returns the number of members in each tuple.
|
Iterator<List<Member>> |
iterator() |
abstract TupleList |
subList(int fromIndex,
int toIndex) |
TupleCursor |
tupleCursor()
Creates a
TupleCursor over this list. |
TupleIterator |
tupleIterator()
Creates an iterator over the contents of this iterable.
|
protected abstract TupleIterator |
tupleIteratorInternal() |
add, add, addAll, clear, equals, get, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addTuple, cloneList, project, slice, withPositionCallback
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public int getArity()
TupleIterable
getArity
in interface TupleIterable
protected abstract TupleIterator tupleIteratorInternal()
public abstract TupleList subList(int fromIndex, int toIndex)
public TupleList fix()
TupleList
public final TupleIterator tupleIterator()
TupleIterable
Always has the same effect as calling Iterable.iterator()
.
tupleIterator
in interface TupleIterable
TupleIterable.tupleCursor()
public TupleCursor tupleCursor()
TupleCursor
over this list.
Any implementation of TupleList
must implement all three
methods iterator()
, tupleIterator()
and
tupleCursor
. The default implementation returns the same
for all three, but a derived classes can override this method to create a
more efficient implementation that implements cursor but not iterator.
tupleCursor
in interface TupleIterable
public void addCurrent(TupleCursor tupleIter)
addCurrent
in interface TupleList
public Member get(int slice, int index)
TupleList
Note that list.get(row, column)
is equivalent to list.slice(column).get(row)
and list.get(row).get(column)
but is more efficient for most implementations of TupleList.
Copyright © 2018 Hitachi Vantara. All rights reserved.