- All Superinterfaces:
AutoCloseable
,Collection<TupleTableSlot>
,Iterable<TupleTableSlot>
,List<TupleTableSlot>
,SequencedCollection<TupleTableSlot>
- All Known Implementing Classes:
TupleList.Empty
,TupleList.SPI
Superinterface of one or more classes that can present a sequence of tuples,
working from the forms in which PostgreSQL can present them.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
static class
ATupleList
constructed atop a PostgreSQLSPITupleTable
. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
default Spliterator
<TupleTableSlot> Returns aSpliterator
that never splits.Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, sort, subList, toArray, toArray
-
Field Details
-
EMPTY
-
-
Method Details
-
close
default void close()- Specified by:
close
in interfaceAutoCloseable
-
spliterator
Returns aSpliterator
that never splits.Because a
TupleList
is typically built on a singleTupleTableSlot
holding each tuple in turn, there can be no thought of parallel stream execution.Also, because a
TupleList
iterator may return the sameTupleTableSlot
repeatedly, statefulStream
operations such asdistinct
orsorted
will make no sense applied to those objects.- Specified by:
spliterator
in interfaceCollection<TupleTableSlot>
- Specified by:
spliterator
in interfaceIterable<TupleTableSlot>
- Specified by:
spliterator
in interfaceList<TupleTableSlot>
-