Class NativeScalarFunction
- java.lang.Object
-
- org.apache.cassandra.cql3.functions.AbstractFunction
-
- org.apache.cassandra.cql3.functions.NativeFunction
-
- org.apache.cassandra.cql3.functions.NativeScalarFunction
-
- All Implemented Interfaces:
AssignmentTestable,Function,ScalarFunction
- Direct Known Subclasses:
FromJsonFct,ToJsonFct,TokenFct
public abstract class NativeScalarFunction extends NativeFunction implements ScalarFunction
Base class for theScalarFunctionnative classes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.AssignmentTestable
AssignmentTestable.TestResult
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.cql3.functions.AbstractFunction
argTypes, name, returnType
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNativeScalarFunction(java.lang.String name, AbstractType<?> returnType, AbstractType<?>... argsType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAggregate()Checks whether the function is an aggregate function or not.booleanisCalledOnNullInput()-
Methods inherited from class org.apache.cassandra.cql3.functions.NativeFunction
isNative
-
Methods inherited from class org.apache.cassandra.cql3.functions.AbstractFunction
addFunctionsTo, argTypes, argumentsList, columnName, elementKeyspace, elementName, equals, hashCode, name, referencesUserType, returnType, testAssignment, toCqlString, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.AssignmentTestable
testAssignment
-
Methods inherited from interface org.apache.cassandra.cql3.functions.Function
addFunctionsTo, argTypes, columnName, compare, isNative, name, referencesUserType, returnType
-
Methods inherited from interface org.apache.cassandra.cql3.functions.ScalarFunction
execute
-
-
-
-
Constructor Detail
-
NativeScalarFunction
protected NativeScalarFunction(java.lang.String name, AbstractType<?> returnType, AbstractType<?>... argsType)
-
-
Method Detail
-
isCalledOnNullInput
public boolean isCalledOnNullInput()
- Specified by:
isCalledOnNullInputin interfaceScalarFunction
-
isAggregate
public final boolean isAggregate()
Description copied from interface:FunctionChecks whether the function is an aggregate function or not.- Specified by:
isAggregatein interfaceFunction- Returns:
trueif the function is an aggregate function,falseotherwise.
-
-