public class DelegatingTupleList extends AbstractTupleList
TupleList
based on a list of
List<Member>
tuples.AbstractTupleList.AbstractTupleListIterator
TupleList.PositionCallback
arity, mutable
modCount
Constructor and Description |
---|
DelegatingTupleList(int arity,
List<List<Member>> list)
Creates a DelegatingTupleList.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
List<Member> element) |
void |
addTuple(Member... members) |
TupleList |
cloneList(int capacity)
Creates a copy of this list that has the same type and has a given
capacity.
|
List<Member> |
get(int index) |
TupleList |
project(int[] destIndices) |
List<Member> |
set(int index,
List<Member> element) |
int |
size() |
List<Member> |
slice(int column)
Returns a list of the members at a given column.
|
TupleList |
subList(int fromIndex,
int toIndex) |
protected TupleIterator |
tupleIteratorInternal() |
TupleList |
withPositionCallback(TupleList.PositionCallback positionCallback) |
addCurrent, fix, get, getArity, iterator, tupleCursor, tupleIterator
add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
protected TupleIterator tupleIteratorInternal()
tupleIteratorInternal
in class AbstractTupleList
public TupleList subList(int fromIndex, int toIndex)
public int size()
public List<Member> slice(int column)
TupleList
The list is modifiable if and only if this TupleList is modifiable. Adding an element to a slice will create a tuple whose members in other columns are null. Removing an element from a slicer will remove a tuple.
column
- Ordinal of the member in each tuple to projectpublic TupleList cloneList(int capacity)
TupleList
If capacity is negative, populates the list. A deep copy is made, so that it the contents of the list are not affected to changes to any backing collections.
capacity
- Capacitypublic void addTuple(Member... members)
public TupleList project(int[] destIndices)
public TupleList withPositionCallback(TupleList.PositionCallback positionCallback)
Copyright © 2018 Hitachi Vantara. All rights reserved.