public interface UDFContext
udfContext
field, scripted UDFs can get it using the udfContext
binding.Modifier and Type | Method and Description |
---|---|
com.datastax.driver.core.TupleValue |
newArgTupleValue(int argNum)
Creates a new
TupleValue instance for an argument. |
com.datastax.driver.core.TupleValue |
newArgTupleValue(java.lang.String argName)
Creates a new
TupleValue instance for an argument. |
com.datastax.driver.core.UDTValue |
newArgUDTValue(int argNum)
Creates a new
UDTValue instance for an argument. |
com.datastax.driver.core.UDTValue |
newArgUDTValue(java.lang.String argName)
Creates a new
UDTValue instance for an argument. |
com.datastax.driver.core.TupleValue |
newReturnTupleValue()
Creates a new
TupleValue instance for the return value. |
com.datastax.driver.core.UDTValue |
newReturnUDTValue()
Creates a new
UDTValue instance for the return value. |
com.datastax.driver.core.TupleValue |
newTupleValue(java.lang.String cqlDefinition)
Creates a new
TupleValue instance for the CQL type definition. |
com.datastax.driver.core.UDTValue |
newUDTValue(java.lang.String udtName)
Creates a new
UDTValue instance by name in the same keyspace. |
com.datastax.driver.core.UDTValue newArgUDTValue(java.lang.String argName)
UDTValue
instance for an argument.argName
- name of the argument as declared in the CREATE FUNCTION
statementUDTValue
instancejava.lang.IllegalArgumentException
- if no argument for the given name existsjava.lang.IllegalStateException
- if the argument is not a UDTcom.datastax.driver.core.UDTValue newArgUDTValue(int argNum)
UDTValue
instance for an argument.argNum
- zero-based index of the argument as declared in the CREATE FUNCTION
statementUDTValue
instancejava.lang.ArrayIndexOutOfBoundsException
- if no argument for the given index existsjava.lang.IllegalStateException
- if the argument is not a UDTcom.datastax.driver.core.UDTValue newReturnUDTValue()
UDTValue
instance for the return value.UDTValue
instancejava.lang.IllegalStateException
- if the return type is not a UDTcom.datastax.driver.core.UDTValue newUDTValue(java.lang.String udtName)
UDTValue
instance by name in the same keyspace.udtName
- name of the user defined type in the same keyspace as the functionUDTValue
instancejava.lang.IllegalArgumentException
- if no UDT for the given name existscom.datastax.driver.core.TupleValue newArgTupleValue(java.lang.String argName)
TupleValue
instance for an argument.argName
- name of the argument as declared in the CREATE FUNCTION
statementTupleValue
instancejava.lang.IllegalArgumentException
- if no argument for the given name existsjava.lang.IllegalStateException
- if the argument is not a tuplecom.datastax.driver.core.TupleValue newArgTupleValue(int argNum)
TupleValue
instance for an argument.argNum
- zero-based index of the argument as declared in the CREATE FUNCTION
statementTupleValue
instancejava.lang.ArrayIndexOutOfBoundsException
- if no argument for the given index existsjava.lang.IllegalStateException
- if the argument is not a tuplecom.datastax.driver.core.TupleValue newReturnTupleValue()
TupleValue
instance for the return value.TupleValue
instancejava.lang.IllegalStateException
- if the return type is not a tuplecom.datastax.driver.core.TupleValue newTupleValue(java.lang.String cqlDefinition)
TupleValue
instance for the CQL type definition.cqlDefinition
- CQL tuple type definition like tuple<int, text, bigint>
TupleValue
instancejava.lang.IllegalStateException
- if cqlDefinition type is not a tuple or an invalid typeCopyright © 2009- The Apache Software Foundation