Class TupleExprWrapperIteration<T extends BindingSet,​X extends java.lang.Exception>

  • All Implemented Interfaces:
    java.lang.AutoCloseable, CloseableIteration<T,​X>, Iteration<T,​X>

    class TupleExprWrapperIteration<T extends BindingSet,​X extends java.lang.Exception>
    extends java.lang.Object
    implements CloseableIteration<T,​X>
    This iteration is used to debug issues with the TupleExpr that was used to generate the wrapped iteration. AbstractSailConnection will use this class when evaluating a query if assertions are enabled.
    • Method Detail

      • close

        public void close()
                   throws X extends java.lang.Exception
        Description copied from interface: CloseableIteration
        Closes this iteration, freeing any resources that it is holding. If the iteration has already been closed then invoking this method has no effect.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface CloseableIteration<T extends BindingSet,​X extends java.lang.Exception>
        Throws:
        X extends java.lang.Exception
      • hasNext

        public boolean hasNext()
                        throws X extends java.lang.Exception
        Description copied from interface: Iteration
        Returns true if the iteration has more elements. (In other words, returns true if Iteration.next() would return an element rather than throwing a NoSuchElementException.)
        Specified by:
        hasNext in interface Iteration<T extends BindingSet,​X extends java.lang.Exception>
        Returns:
        true if the iteration has more elements.
        Throws:
        X
        X extends java.lang.Exception
      • next

        public T next()
               throws X extends java.lang.Exception
        Description copied from interface: Iteration
        Returns the next element in the iteration.
        Specified by:
        next in interface Iteration<T extends BindingSet,​X extends java.lang.Exception>
        Returns:
        the next element in the iteration.
        Throws:
        X extends java.lang.Exception
      • remove

        public void remove()
                    throws X extends java.lang.Exception
        Description copied from interface: Iteration
        Removes from the underlying collection the last element returned by the iteration (optional operation). This method can be called only once per call to next.
        Specified by:
        remove in interface Iteration<T extends BindingSet,​X extends java.lang.Exception>
        Throws:
        X extends java.lang.Exception
      • getTupleExpr

        public TupleExpr getTupleExpr()
      • getTupleExprClone

        public TupleExpr getTupleExprClone()