Class AbstractTupleIterable

    • Field Detail

      • arity

        protected final int arity
    • Constructor Detail

      • AbstractTupleIterable

        public AbstractTupleIterable​(int arity)
        Creates an AbstractTupleIterable.
        Parameters:
        arity - Arity (number of members per tuple)
    • Method Detail

      • getArity

        public int getArity()
        Description copied from interface: TupleIterable
        Returns the number of members in each tuple.
        Specified by:
        getArity in interface TupleIterable
        Returns:
        The number of members in each tuple
      • slice

        public Iterable<Member> slice​(int column)
        Description copied from interface: TupleIterable
        Returns an iterable over the members at a given column.

        The iteratble returns an interator that is modifiable if and only if this TupleIterable is modifiable.

        If this TupleIterable happens to be a TupleList, the method is overridden to return a List<Member>.

        Specified by:
        slice in interface TupleIterable
        Parameters:
        column - Ordinal of the member in each tuple to project
        Returns:
        Iterable that returns an iterator over members