Class TimeFcts.TemporalConversionFunction
- java.lang.Object
-
- org.apache.cassandra.cql3.functions.AbstractFunction
-
- org.apache.cassandra.cql3.functions.NativeFunction
-
- org.apache.cassandra.cql3.functions.NativeScalarFunction
-
- org.apache.cassandra.cql3.functions.TimeFcts.TemporalConversionFunction
-
- All Implemented Interfaces:
AssignmentTestable
,Function
,ScalarFunction
- Enclosing class:
- TimeFcts
public abstract static class TimeFcts.TemporalConversionFunction extends NativeScalarFunction
-
-
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
-
Fields inherited from interface org.apache.cassandra.cql3.functions.Function
UNRESOLVED
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TemporalConversionFunction(java.lang.String name, AbstractType<?> returnType, AbstractType<?>... argsType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
beforeExecution()
protected abstract java.nio.ByteBuffer
convertArgument(long timeInMillis)
java.nio.ByteBuffer
execute(Arguments arguments)
Applies this function to the specified arguments.-
Methods inherited from class org.apache.cassandra.cql3.functions.NativeScalarFunction
isAggregate, isCalledOnNullInput, isPartialApplicationMonotonic
-
Methods inherited from class org.apache.cassandra.cql3.functions.NativeFunction
isNative, isPure, newArguments, withLegacyName
-
Methods inherited from class org.apache.cassandra.cql3.functions.AbstractFunction
addFunctionsTo, argTypes, argumentsList, columnName, elementKeyspace, elementName, equals, getCompatibleTypeIfKnown, hashCode, name, referencesUserType, returnType, testAssignment, toCqlString, toString, typesMatch
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.AssignmentTestable
getCompatibleTypeIfKnown, testAssignment
-
Methods inherited from interface org.apache.cassandra.cql3.functions.Function
addFunctionsTo, argTypes, columnName, compare, isNative, isPure, name, newArguments, referencesUserType, returnType
-
Methods inherited from interface org.apache.cassandra.cql3.functions.ScalarFunction
isMonotonic, partialApplication
-
-
-
-
Constructor Detail
-
TemporalConversionFunction
protected TemporalConversionFunction(java.lang.String name, AbstractType<?> returnType, AbstractType<?>... argsType)
-
-
Method Detail
-
execute
public java.nio.ByteBuffer execute(Arguments arguments)
Description copied from interface:ScalarFunction
Applies this function to the specified arguments.- Parameters:
arguments
- the input arguments for the function- Returns:
- the result of applying this function to the arguments
-
beforeExecution
protected void beforeExecution()
-
convertArgument
protected abstract java.nio.ByteBuffer convertArgument(long timeInMillis)
-
-