Class FunctionArguments

  • All Implemented Interfaces:
    Arguments

    public final class FunctionArguments
    extends java.lang.Object
    implements Arguments
    Default Arguments implementation.
    • Method Detail

      • newNoopInstance

        public static FunctionArguments newNoopInstance​(ProtocolVersion version,
                                                        int numberOfArguments)
        Creates a new FunctionArguments that does not deserialize the arguments.
        Parameters:
        version - the protocol version
        numberOfArguments - the number of argument
        Returns:
        a new FunctionArguments for the specified types.
      • set

        public void set​(int i,
                        java.nio.ByteBuffer buffer)
        Description copied from interface: Arguments
        Sets the specified value to the arguments
        Specified by:
        set in interface Arguments
        Parameters:
        i - the argument position
        buffer - the serialized argument
      • containsNulls

        public boolean containsNulls()
        Description copied from interface: Arguments
        Checks if at least one of the arguments is null.
        Specified by:
        containsNulls in interface Arguments
        Returns:
        true if at least one of the arguments is null, false otherwise.
      • get

        public <T> T get​(int i)
        Description copied from interface: Arguments
        Returns the specified argument
        Specified by:
        get in interface Arguments
        Parameters:
        i - the argument index
        Returns:
        the specified argument
      • size

        public int size()
        Description copied from interface: Arguments
        Returns the current number of arguments.
        Specified by:
        size in interface Arguments
        Returns:
        the current number of arguments.