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:
BytesConversionFcts.FromBlobFunction,BytesConversionFcts.ToBlobFunction,FromJsonFct,MaskingFunction,TimeFcts.FloorDateFunction,TimeFcts.FloorTimestampFunction,TimeFcts.FloorTimeUuidFunction,TimeFcts.TemporalConversionFunction,ToJsonFct,TokenFct
Base class for the
ScalarFunction native 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, returnTypeFields inherited from interface org.apache.cassandra.cql3.functions.Function
UNRESOLVED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNativeScalarFunction(String name, AbstractType<?> returnType, AbstractType<?>... argsType) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanChecks whether the function is an aggregate function or not.booleanprotected booleanisPartialApplicationMonotonic(List<ByteBuffer> partialParameters) Checks if a partial application of the function is monotonic.Methods inherited from class org.apache.cassandra.cql3.functions.NativeFunction
isNative, isPure, newArguments, withLegacyNameMethods inherited from class org.apache.cassandra.cql3.functions.AbstractFunction
addFunctionsTo, argTypes, argumentsList, columnName, elementKeyspace, elementName, equals, getCompatibleTypeIfKnown, hashCode, name, referencesUserType, returnType, testAssignment, toCqlString, toString, typesMatchMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.cql3.AssignmentTestable
getCompatibleTypeIfKnown, testAssignmentMethods inherited from interface org.apache.cassandra.cql3.functions.Function
addFunctionsTo, argTypes, columnName, compare, isNative, isPure, name, newArguments, referencesUserType, returnTypeMethods inherited from interface org.apache.cassandra.cql3.functions.ScalarFunction
execute, isMonotonic, partialApplication
-
Constructor Details
-
NativeScalarFunction
protected NativeScalarFunction(String name, AbstractType<?> returnType, AbstractType<?>... argsType)
-
-
Method Details
-
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.
-
isPartialApplicationMonotonic
Checks if a partial application of the function is monotonic.A function is monotonic if it is either entirely nonincreasing or nondecreasing.
- Parameters:
partialParameters- the input parameters used to create the partial application of the function- Returns:
trueif the partial application of the function is monotonicfalseotherwise.
-