Class NativeFunctions
java.lang.Object
org.apache.cassandra.cql3.functions.NativeFunctions
A container of native functions. It stores both pre-built function overloads (
NativeFunction) and
dynamic generators of functions (FunctionFactory).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(FunctionFactory factory) voidadd(NativeFunction function) voidaddAll(NativeFunction... functions) getFactories(FunctionName name) Returns all the registered functions factories with the specified name.getFunctions(FunctionName name) Returns all the registered pre-built functions overloads with the specified name.booleanhasFactory(FunctionName name) Returns whether there is a function factory with the specified name.
-
Field Details
-
instance
-
-
Constructor Details
-
NativeFunctions
public NativeFunctions()
-
-
Method Details
-
add
-
addAll
-
add
-
getFunctions
Returns all the registered pre-built functions overloads with the specified name.- Parameters:
name- a function name- Returns:
- the pre-built functions with the specified name
-
getFunctions
- Returns:
- all the registered pre-built functions.
-
getFactories
Returns all the registered functions factories with the specified name.- Parameters:
name- a function name- Returns:
- the function factories with the specified name
-
getFactories
- Returns:
- all the registered functions factories.
-
hasFactory
Returns whether there is a function factory with the specified name.- Parameters:
name- a function name- Returns:
trueif there is a factory with the specified name,falseotherwise
-