Class UDFContextImpl

java.lang.Object
org.apache.cassandra.cql3.functions.UDFContextImpl
All Implemented Interfaces:
UDFContext

public final class UDFContextImpl extends Object implements UDFContext
Package private implementation of UDFContext
  • Method Details

    • newArgUDTValue

      public UDTValue newArgUDTValue(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(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(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(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