Interface ExpressionInput<T>

  • Type Parameters:
    T -
    All Superinterfaces:
    java.lang.AutoCloseable, java.util.concurrent.Callable<T>, Input<T>, java.util.function.Supplier<T>
    All Known Subinterfaces:
    SynchronousExpressionInput<T>

    public interface ExpressionInput<T>
    extends java.util.concurrent.Callable<T>, Input<T>
    • Method Detail

      • call

        T call()
        Perform the expression evaluation
        Specified by:
        call in interface java.util.concurrent.Callable<T>
        Returns:
        the expression evaluation result
      • last

        T last()
        Returns:
        the result of the last expression evaluation
      • get

        T get()
        throws javax.el.PropertyNotFoundException,
              javax.el.ELException
        Get a value. A user should invoke call() method by itself to evaluate the expression if the given expression input is not synchronous. The initial value only would be returned otherwise.
        Specified by:
        get in interface Input<T>
        Specified by:
        get in interface java.util.function.Supplier<T>
        Returns:
        next item or null if no items available more
        Throws:
        javax.el.PropertyNotFoundException
        javax.el.ELException
      • get

        int get​(java.util.List<T> buffer,
                int limit)
         throws javax.el.PropertyNotFoundException,
                javax.el.ELException
        Bulk values get. A user should invoke call() method by itself to evaluate the expression if the given expression input is not synchronous. The initial value only would be returned otherwise.
        Specified by:
        get in interface Input<T>
        Parameters:
        buffer - buffer for the values
        limit - max count of the values to put into the buffer
        Returns:
        count of the items have been get and put into the buffer actually
        Throws:
        javax.el.PropertyNotFoundException
        javax.el.ELException
      • skip

        long skip​(long count)
        Skip some items.
        Specified by:
        skip in interface Input<T>
        Parameters:
        count - count of items should be skipped from the input stream
      • reset

        void reset()
        Set the last value to the initial one.
        Specified by:
        reset in interface Input<T>
      • expr

        java.lang.String expr()
        Returns:
        the expression string
      • type

        java.lang.Class<T> type()
        Returns:
        the result type