Interface TupleList

All Superinterfaces:
AutoCloseable, Collection<TupleTableSlot>, Iterable<TupleTableSlot>, List<TupleTableSlot>, SequencedCollection<TupleTableSlot>
All Known Implementing Classes:
TupleList.Empty, TupleList.SPI

public interface TupleList extends List<TupleTableSlot>, AutoCloseable
Superinterface of one or more classes that can present a sequence of tuples, working from the forms in which PostgreSQL can present them.
  • Field Details

  • Method Details

    • close

      default void close()
      Specified by:
      close in interface AutoCloseable
    • spliterator

      default Spliterator<TupleTableSlot> spliterator()
      Returns a Spliterator that never splits.

      Because a TupleList is typically built on a single TupleTableSlot holding each tuple in turn, there can be no thought of parallel stream execution.

      Also, because a TupleList iterator may return the same TupleTableSlot repeatedly, stateful Stream operations such as distinct or sorted will make no sense applied to those objects.

      Specified by:
      spliterator in interface Collection<TupleTableSlot>
      Specified by:
      spliterator in interface Iterable<TupleTableSlot>
      Specified by:
      spliterator in interface List<TupleTableSlot>