Interface Arguments

  • All Known Implementing Classes:
    FunctionArguments

    public interface Arguments
    The input arguments to a function.

    The class can be reused for calling the same function multiple times.

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      boolean containsNulls()
      Checks if at least one of the arguments is null.
      <T> T get​(int i)
      Returns the specified argument
      default boolean getAsBoolean​(int i)
      Returns the specified argument as a boolean.
      default byte getAsByte​(int i)
      Returns the specified argument as a byte.
      default double getAsDouble​(int i)
      Returns the specified argument as a double.
      default float getAsFloat​(int i)
      Returns the specified argument as a float.
      default int getAsInt​(int i)
      Returns the specified argument as a int.
      default long getAsLong​(int i)
      Returns the specified argument as a long.
      default short getAsShort​(int i)
      Returns the specified argument as a short.
      ProtocolVersion getProtocolVersion()
      Returns the protocol version
      void set​(int i, java.nio.ByteBuffer buffer)
      Sets the specified value to the arguments
      int size()
      Returns the current number of arguments.
    • Method Detail

      • set

        void set​(int i,
                 java.nio.ByteBuffer buffer)
        Sets the specified value to the arguments
        Parameters:
        i - the argument position
        buffer - the serialized argument
      • containsNulls

        boolean containsNulls()
        Checks if at least one of the arguments is null.
        Returns:
        true if at least one of the arguments is null, false otherwise.
      • get

        <T> T get​(int i)
        Returns the specified argument
        Parameters:
        i - the argument index
        Returns:
        the specified argument
      • getProtocolVersion

        ProtocolVersion getProtocolVersion()
        Returns the protocol version
        Returns:
        the protocol version
      • getAsBoolean

        default boolean getAsBoolean​(int i)
        Returns the specified argument as a boolean.
        Parameters:
        i - the argument index
        Returns:
        the specified argument as a boolean
      • getAsByte

        default byte getAsByte​(int i)
        Returns the specified argument as a byte.
        Parameters:
        i - the argument index
        Returns:
        the specified argument as a byte
      • getAsShort

        default short getAsShort​(int i)
        Returns the specified argument as a short.
        Parameters:
        i - the argument index
        Returns:
        the specified argument as a short
      • getAsInt

        default int getAsInt​(int i)
        Returns the specified argument as a int.
        Parameters:
        i - the argument index
        Returns:
        the specified argument as a int
      • getAsLong

        default long getAsLong​(int i)
        Returns the specified argument as a long.
        Parameters:
        i - the argument index
        Returns:
        the specified argument as a long
      • getAsFloat

        default float getAsFloat​(int i)
        Returns the specified argument as a float.
        Parameters:
        i - the argument index
        Returns:
        the specified argument as a float
      • getAsDouble

        default double getAsDouble​(int i)
        Returns the specified argument as a double.
        Parameters:
        i - the argument index
        Returns:
        the specified argument as a double
      • size

        int size()
        Returns the current number of arguments.
        Returns:
        the current number of arguments.