Class TimeFcts.FloorDateFunction
- 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.FloorDateFunction
-
- All Implemented Interfaces:
AssignmentTestable
,Function
,ScalarFunction
- Enclosing class:
- TimeFcts
public static final class TimeFcts.FloorDateFunction extends NativeScalarFunction
Function that rounds a date 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.FloorDateFunction
newInstance()
static TimeFcts.FloorDateFunction
newInstanceWithStartTimeArgument()
protected void
validateDuration(Duration duration)
Validates that the duration has the correct precision.-
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.FloorDateFunction newInstance()
-
newInstanceWithStartTimeArgument
public static TimeFcts.FloorDateFunction newInstanceWithStartTimeArgument()
-
fromTimeInMillis
protected java.nio.ByteBuffer fromTimeInMillis(long timeInMillis)
Serializes the specified time.- Parameters:
timeInMillis
- the time in milliseconds- Returns:
- the serialized time
-
validateDuration
protected void validateDuration(Duration duration)
Validates that the duration has the correct precision.- Parameters:
duration
- the duration to validate.
-
-