Class TimeFcts
- java.lang.Object
-
- org.apache.cassandra.cql3.functions.TimeFcts
-
public abstract class TimeFcts extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static NativeScalarFunction
dateOfFct
Deprecated.Replaced by the#timeUuidToTimestamp
functionstatic org.slf4j.Logger
logger
static Function
maxTimeuuidFct
static Function
minTimeuuidFct
static NativeScalarFunction
unixTimestampOfFct
Deprecated.Replaced by the#timeUuidToUnixTimestamp
function
-
Constructor Summary
Constructors Constructor Description TimeFcts()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Collection<Function>
all()
static Function
now(java.lang.String name, TemporalType<?> type)
static NativeScalarFunction
toDate(TemporalType<?> type)
Creates a function that convert a value of the specified type into aDATE
.static NativeScalarFunction
toTimestamp(TemporalType<?> type)
Creates a function that convert a value of the specified type into aTIMESTAMP
.static NativeScalarFunction
toUnixTimestamp(TemporalType<?> type)
Creates a function that convert a value of the specified type into an UNIX timestamp.
-
-
-
Field Detail
-
logger
public static org.slf4j.Logger logger
-
minTimeuuidFct
public static final Function minTimeuuidFct
-
maxTimeuuidFct
public static final Function maxTimeuuidFct
-
dateOfFct
public static final NativeScalarFunction dateOfFct
Deprecated.Replaced by the#timeUuidToTimestamp
functionFunction that convert a value ofTIMEUUID
into a value of typeTIMESTAMP
.
-
unixTimestampOfFct
public static final NativeScalarFunction unixTimestampOfFct
Deprecated.Replaced by the#timeUuidToUnixTimestamp
functionFunction that convert a value of typeTIMEUUID
into an UNIX timestamp.
-
-
Method Detail
-
all
public static java.util.Collection<Function> all()
-
now
public static final Function now(java.lang.String name, TemporalType<?> type)
-
toDate
public static final NativeScalarFunction toDate(TemporalType<?> type)
Creates a function that convert a value of the specified type into aDATE
.- Parameters:
type
- the temporal type- Returns:
- a function that convert a value of the specified type into a
DATE
.
-
toTimestamp
public static final NativeScalarFunction toTimestamp(TemporalType<?> type)
Creates a function that convert a value of the specified type into aTIMESTAMP
.- Parameters:
type
- the temporal type- Returns:
- a function that convert a value of the specified type into a
TIMESTAMP
.
-
toUnixTimestamp
public static final NativeScalarFunction toUnixTimestamp(TemporalType<?> type)
Creates a function that convert a value of the specified type into an UNIX timestamp.- Parameters:
type
- the temporal type- Returns:
- a function that convert a value of the specified type into an UNIX timestamp.
-
-