Class SqlFunctions.ProductComparableListEnumerator<E extends java.lang.Comparable>

    • Field Detail

      • flatElements

        final E extends java.lang.Comparable[] flatElements
      • list

        final java.util.List<E extends java.lang.Comparable> list
      • withOrdinality

        private final boolean withOrdinality
      • ordinality

        private int ordinality
    • Constructor Detail

      • ProductComparableListEnumerator

        ProductComparableListEnumerator​(java.util.List<Enumerator<java.util.List<E>>> enumerators,
                                        int fieldCount,
                                        boolean withOrdinality)
    • Method Detail

      • current

        public FlatLists.ComparableList<E> current()
        Description copied from interface: Enumerator
        Gets the current element in the collection.

        After an enumerator is created or after the Enumerator.reset() method is called, the Enumerator.moveNext() method must be called to advance the enumerator to the first element of the collection before reading the value of the current property; otherwise, current is undefined.

        This method also throws NoSuchElementException if the last call to moveNext returned false, which indicates the end of the collection.

        This method does not move the position of the enumerator, and consecutive calls to current return the same object until either moveNext or reset is called.

        An enumerator remains valid as long as the collection remains unchanged. If changes are made to the collection, such as adding, modifying, or deleting elements, the enumerator is irrecoverably invalidated. The next call to moveNext or reset may, at the discretion of the implementation, throw a ConcurrentModificationException. If the collection is modified between moveNext and current, current returns the element that it is set to, even if the enumerator is already invalidated.

        Current element