Class UDFContextImpl

  • All Implemented Interfaces:
    UDFContext

    public final class UDFContextImpl
    extends java.lang.Object
    implements UDFContext
    Package private implementation of UDFContext
    • Method Detail

      • newArgUDTValue

        public UDTValue newArgUDTValue​(java.lang.String argName)
        Description copied from interface: UDFContext
        Creates a new UDTValue instance for an argument.
        Specified by:
        newArgUDTValue in interface UDFContext
        Parameters:
        argName - name of the argument as declared in the CREATE FUNCTION statement
        Returns:
        a new UDTValue instance
      • newArgUDTValue

        public UDTValue newArgUDTValue​(int argNum)
        Description copied from interface: UDFContext
        Creates a new UDTValue instance for an argument.
        Specified by:
        newArgUDTValue in interface UDFContext
        Parameters:
        argNum - zero-based index of the argument as declared in the CREATE FUNCTION statement
        Returns:
        a new UDTValue instance
      • newReturnUDTValue

        public UDTValue newReturnUDTValue()
        Description copied from interface: UDFContext
        Creates a new UDTValue instance for the return value.
        Specified by:
        newReturnUDTValue in interface UDFContext
        Returns:
        a new UDTValue instance
      • newUDTValue

        public UDTValue newUDTValue​(java.lang.String udtName)
        Description copied from interface: UDFContext
        Creates a new UDTValue instance by name in the same keyspace.
        Specified by:
        newUDTValue in interface UDFContext
        Parameters:
        udtName - name of the user defined type in the same keyspace as the function
        Returns:
        a new UDTValue instance
      • newArgTupleValue

        public TupleValue newArgTupleValue​(java.lang.String argName)
        Description copied from interface: UDFContext
        Creates a new TupleValue instance for an argument.
        Specified by:
        newArgTupleValue in interface UDFContext
        Parameters:
        argName - name of the argument as declared in the CREATE FUNCTION statement
        Returns:
        a new TupleValue instance
      • newArgTupleValue

        public TupleValue newArgTupleValue​(int argNum)
        Description copied from interface: UDFContext
        Creates a new TupleValue instance for an argument.
        Specified by:
        newArgTupleValue in interface UDFContext
        Parameters:
        argNum - zero-based index of the argument as declared in the CREATE FUNCTION statement
        Returns:
        a new TupleValue instance
      • newReturnTupleValue

        public TupleValue newReturnTupleValue()
        Description copied from interface: UDFContext
        Creates a new TupleValue instance for the return value.
        Specified by:
        newReturnTupleValue in interface UDFContext
        Returns:
        a new TupleValue instance
      • newTupleValue

        public TupleValue newTupleValue​(java.lang.String cqlDefinition)
        Description copied from interface: UDFContext
        Creates a new TupleValue instance for the CQL type definition.
        Specified by:
        newTupleValue in interface UDFContext
        Parameters:
        cqlDefinition - CQL tuple type definition like tuple<int, text, bigint>
        Returns:
        a new TupleValue instance