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, setaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddTuple, cloneList, project, slice, withPositionCallbackadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic int getArity()
TupleIterablegetArity in interface TupleIterableprotected abstract TupleIterator tupleIteratorInternal()
public abstract TupleList subList(int fromIndex, int toIndex)
public TupleList fix()
TupleListpublic final TupleIterator tupleIterator()
TupleIterableAlways has the same effect as calling Iterable.iterator().
tupleIterator in interface TupleIterableTupleIterable.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 TupleIterablepublic void addCurrent(TupleCursor tupleIter)
addCurrent in interface TupleListpublic Member get(int slice, int index)
TupleListNote 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 © 2021 Hitachi Vantara. All rights reserved.