Package org.apache.calcite.util
Class Smalls.AllTypesFunction
java.lang.Object
org.apache.calcite.util.Smalls.AllTypesFunction
- Enclosing class:
Smalls
UDF class that provides user-defined functions for each data type.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List
arrayAppendFun
(List v, Integer i) static long
static long
static long
static Date
toDateFun
(int v) Overloaded, in a challenging way, withtoDateFun(Long)
.static Date
static double
static double
static double
toDouble
(BigDecimal var) For overloaded user-defined functions that havedouble
andBigDecimal
arguments will go wrong.static long
Overloaded functions with DATE, TIMESTAMP and TIME arguments.static long
static long
static Time
static Timestamp
-
Method Details
-
dateFun
-
timestampFun
-
timeFun
-
toDateFun
Overloaded, in a challenging way, withtoDateFun(Long)
. -
toDateFun
-
toTimestampFun
-
toTimeFun
-
toDouble
For overloaded user-defined functions that havedouble
andBigDecimal
arguments will go wrong. -
toDouble
-
toDouble
-
arrayAppendFun
-
toLong
Overloaded functions with DATE, TIMESTAMP and TIME arguments. -
toLong
-
toLong
-