Class TimeFcts.FloorTimestampFunction
- 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.FloorTimestampFunction
-
- All Implemented Interfaces:
AssignmentTestable
,Function
,ScalarFunction
- Enclosing class:
- TimeFcts
public static final class TimeFcts.FloorTimestampFunction extends NativeScalarFunction
Function that rounds a timestamp down to the closest multiple of a duration.
-
-
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.nio.ByteBuffer
fromTimeInMillis(long timeInMillis)
Serializes the specified time.static TimeFcts.FloorTimestampFunction
newInstance()
static TimeFcts.FloorTimestampFunction
newInstanceWithStartTimeArgument()
-
Methods inherited from class org.apache.cassandra.cql3.functions.NativeScalarFunction
isAggregate, isCalledOnNullInput
-
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
-
-
-
-
Method Detail
-
newInstance
public static TimeFcts.FloorTimestampFunction newInstance()
-
newInstanceWithStartTimeArgument
public static TimeFcts.FloorTimestampFunction newInstanceWithStartTimeArgument()
-
fromTimeInMillis
protected java.nio.ByteBuffer fromTimeInMillis(long timeInMillis)
Serializes the specified time.- Parameters:
timeInMillis
- the time in milliseconds- Returns:
- the serialized time
-
-