Class UDFContextImpl
java.lang.Object
org.apache.cassandra.cql3.functions.UDFContextImpl
- All Implemented Interfaces:
UDFContext
Package private implementation of
UDFContext-
Method Summary
Modifier and TypeMethodDescriptionnewArgTupleValue(int argNum) Creates a newTupleValueinstance for an argument.newArgTupleValue(String argName) Creates a newTupleValueinstance for an argument.newArgUDTValue(int argNum) Creates a newUDTValueinstance for an argument.newArgUDTValue(String argName) Creates a newUDTValueinstance for an argument.Creates a newTupleValueinstance for the return value.Creates a newUDTValueinstance for the return value.newTupleValue(String cqlDefinition) Creates a newTupleValueinstance for the CQL type definition.newUDTValue(String udtName) Creates a newUDTValueinstance by name in the same keyspace.
-
Method Details
-
newArgUDTValue
Description copied from interface:UDFContextCreates a newUDTValueinstance for an argument.- Specified by:
newArgUDTValuein interfaceUDFContext- Parameters:
argName- name of the argument as declared in theCREATE FUNCTIONstatement- Returns:
- a new
UDTValueinstance
-
newArgUDTValue
Description copied from interface:UDFContextCreates a newUDTValueinstance for an argument.- Specified by:
newArgUDTValuein interfaceUDFContext- Parameters:
argNum- zero-based index of the argument as declared in theCREATE FUNCTIONstatement- Returns:
- a new
UDTValueinstance
-
newReturnUDTValue
Description copied from interface:UDFContextCreates a newUDTValueinstance for the return value.- Specified by:
newReturnUDTValuein interfaceUDFContext- Returns:
- a new
UDTValueinstance
-
newUDTValue
Description copied from interface:UDFContextCreates a newUDTValueinstance by name in the same keyspace.- Specified by:
newUDTValuein interfaceUDFContext- Parameters:
udtName- name of the user defined type in the same keyspace as the function- Returns:
- a new
UDTValueinstance
-
newArgTupleValue
Description copied from interface:UDFContextCreates a newTupleValueinstance for an argument.- Specified by:
newArgTupleValuein interfaceUDFContext- Parameters:
argName- name of the argument as declared in theCREATE FUNCTIONstatement- Returns:
- a new
TupleValueinstance
-
newArgTupleValue
Description copied from interface:UDFContextCreates a newTupleValueinstance for an argument.- Specified by:
newArgTupleValuein interfaceUDFContext- Parameters:
argNum- zero-based index of the argument as declared in theCREATE FUNCTIONstatement- Returns:
- a new
TupleValueinstance
-
newReturnTupleValue
Description copied from interface:UDFContextCreates a newTupleValueinstance for the return value.- Specified by:
newReturnTupleValuein interfaceUDFContext- Returns:
- a new
TupleValueinstance
-
newTupleValue
Description copied from interface:UDFContextCreates a newTupleValueinstance for the CQL type definition.- Specified by:
newTupleValuein interfaceUDFContext- Parameters:
cqlDefinition- CQL tuple type definition liketuple<int, text, bigint>- Returns:
- a new
TupleValueinstance
-