Package mondrian.calc.impl
Class DelegatingTupleList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<List<Member>>
mondrian.calc.impl.AbstractTupleList
mondrian.calc.impl.DelegatingTupleList
- All Implemented Interfaces:
Cloneable
,Iterable<List<Member>>
,Collection<List<Member>>
,List<List<Member>>
,RandomAccess
,TupleIterable
,TupleList
Implementation of
TupleList
based on a list of
List<Member>
tuples.- Author:
- jhyde
-
Nested Class Summary
Nested classes/interfaces inherited from class mondrian.calc.impl.AbstractTupleList
AbstractTupleList.AbstractTupleListIterator
Nested classes/interfaces inherited from interface mondrian.calc.TupleList
TupleList.PositionCallback
-
Field Summary
Fields inherited from class mondrian.calc.impl.AbstractTupleList
arity, mutable
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorDescriptionDelegatingTupleList
(int arity, List<List<Member>> list) Creates a DelegatingTupleList. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
cloneList
(int capacity) Creates a copy of this list that has the same type and has a given capacity.get
(int index) project
(int[] destIndices) int
size()
slice
(int column) Returns a list of the members at a given column.subList
(int fromIndex, int toIndex) protected TupleIterator
withPositionCallback
(TupleList.PositionCallback positionCallback) Methods inherited from class mondrian.calc.impl.AbstractTupleList
addCurrent, fix, get, getArity, iterator, tupleCursor, tupleIterator
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
DelegatingTupleList
Creates a DelegatingTupleList.- Parameters:
arity
- Aritylist
- Backing list
-
-
Method Details
-
tupleIteratorInternal
- Specified by:
tupleIteratorInternal
in classAbstractTupleList
-
subList
-
get
-
size
public int size() -
slice
Description copied from interface:TupleList
Returns a list of the members at a given column.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.
- Parameters:
column
- Ordinal of the member in each tuple to project- Returns:
- List of members
-
cloneList
Description copied from interface:TupleList
Creates a copy of this list that has the same type and has a given capacity.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.
- Parameters:
capacity
- Capacity- Returns:
- Copy of list, empty if capacity is non-negative
-
set
-
add
-
addTuple
-
project
-
withPositionCallback
-