| 程序包 | 说明 |
|---|---|
| com.github.braisdom.objsql.sql.function |
| 限定符和类型 | 方法和说明 |
|---|---|
static NativeFunction |
IsoFunctions.avg(Expression expression) |
static NativeFunction |
ClickHouseFunctions.cast(Expression expression,
Expression dataType) |
static NativeFunction |
IsoFunctions.concat(Expression... expressions) |
static NativeFunction |
IsoFunctions.count() |
static NativeFunction |
IsoFunctions.count(Expression expression) |
static NativeFunction |
IsoFunctions.countDistinct(Expression expression) |
static NativeFunction |
ClickHouseFunctions.dateDiff(Expression unit,
Expression startTime,
Expression endTime)
Returns the difference between two Date or DateTime values.
|
static NativeFunction |
ClickHouseFunctions.dateDiff(Expression unit,
Expression startTime,
Expression endTime,
Expression timeZone) |
static NativeFunction |
ClickHouseFunctions.divide(Expression expression1,
Expression expression2)
Calculates the quotient of the numbers.
|
static NativeFunction |
ClickHouseFunctions.formatDateTime(Expression time,
Expression formatter)
Function formats a Time according given Format string.
|
static NativeFunction |
ClickHouseFunctions.formatDateTime(Expression time,
Expression formatter,
Expression timeZone) |
static NativeFunction |
ClickHouseFunctions.fromUnixTime(Expression timeStamp)
When there is only single argument of integer type, it act in the same way as toDateTime and return DateTime.
|
static NativeFunction |
ClickHouseFunctions.fromUnixTime(Expression timeStamp,
Expression formatter)
When there are two arguments, first is integer or DateTime, second is constant format string,
it act in the same way as formatDateTime and return String type.
|
static NativeFunction |
IsoFunctions.If(Expression expression,
Expression expression1,
Expression expression2) |
static NativeFunction |
ClickHouseFunctions.intDiv(Expression expression1,
Expression expression2)
Calculates the quotient of the numbers.
|
static NativeFunction |
ClickHouseFunctions.intDivOrZero(Expression expression1,
Expression expression2)
Differs from ‘intDiv’ in that it returns zero when dividing by zero or when dividing a minimal
negative number by minus one.
|
static NativeFunction |
IsoFunctions.ltrim(Expression... expressions) |
static NativeFunction |
IsoFunctions.max(Expression expression) |
static NativeFunction |
IsoFunctions.min(Expression expression) |
static NativeFunction |
ClickHouseFunctions.minus(Expression expression1,
Expression expression2)
Calculates the difference.
|
static NativeFunction |
ClickHouseFunctions.modulo(Expression expression1,
Expression expression2)
Calculates the remainder after division.
|
static NativeFunction |
ClickHouseFunctions.moduloOrZero(Expression expression1,
Expression expression2)
Differs from modulo in that it returns zero when the divisor is zero.
|
static NativeFunction |
ClickHouseFunctions.multiply(Expression expression1,
Expression expression2)
Calculates the product of the numbers.
|
static NativeFunction |
ClickHouseFunctions.now()
Accepts zero arguments and returns the current time at one of the moments of request execution.
|
static NativeFunction |
ClickHouseFunctions.plus(Expression expression1,
Expression expression2)
Calculates the sum of the numbers.
|
static NativeFunction |
IsoFunctions.rtrim(Expression... expressions) |
static NativeFunction |
IsoFunctions.sum(Expression expression) |
static NativeFunction |
ClickHouseFunctions.toDate(Expression expression) |
static NativeFunction |
ClickHouseFunctions.toDateTime(Expression expression) |
static NativeFunction |
ClickHouseFunctions.today()
Accepts zero arguments and returns the current date at one of the moments of request execution.
|
static NativeFunction |
ClickHouseFunctions.toDayOfMonth(Expression expression)
Converts a date or date with time to a UInt8 number containing the number of the day of the month (1-31).
|
static NativeFunction |
ClickHouseFunctions.toDayOfWeek(Expression expression)
Converts a date or date with time to a UInt8 number containing the number of the day of the
week (Monday is 1, and Sunday is 7).
|
static NativeFunction |
ClickHouseFunctions.toDayOfYear(Expression expression)
Converts a date or date with time to a UInt16 number containing the number of the day of the year (1-366).
|
static NativeFunction |
ClickHouseFunctions.toDecimal128(Expression value,
Expression scale)
To see toDecimal32
|
static NativeFunction |
ClickHouseFunctions.toDecimal32(Expression value,
Expression scale)
Converts value to the Decimal data type with precision of scale.
|
static NativeFunction |
ClickHouseFunctions.toDecimal64(Expression value,
Expression scale)
To see toDecimal32
|
static NativeFunction |
ClickHouseFunctions.toFloat32(Expression expression) |
static NativeFunction |
ClickHouseFunctions.toFloat64(Expression expression) |
static NativeFunction |
ClickHouseFunctions.toHour(Expression expression)
Converts a date with time to a UInt8 number containing the number of the hour in 24-hour time (0-23).
|
static NativeFunction |
ClickHouseFunctions.toInt16(Expression expression) |
static NativeFunction |
ClickHouseFunctions.toInt32(Expression expression) |
static NativeFunction |
ClickHouseFunctions.toInt64(Expression expression) |
static NativeFunction |
ClickHouseFunctions.toInt8(Expression expression) |
static NativeFunction |
ClickHouseFunctions.toMinute(Expression expression)
Converts a date with time to a UInt8 number containing the number of the minute of the hour (0-59).
|
static NativeFunction |
ClickHouseFunctions.toMonth(Expression expression)
Converts a date or date with time to a UInt8 number containing the month number (1-12).
|
static NativeFunction |
ClickHouseFunctions.toSecond(Expression expression)
Converts a date with time to a UInt8 number containing the number of the second in the minute (0-59).
|
static NativeFunction |
ClickHouseFunctions.toString(Expression expression) |
static NativeFunction |
ClickHouseFunctions.toString(Expression expression,
Expression formatter)
Functions for converting dates, and dates with times.
|
static NativeFunction |
ClickHouseFunctions.toUInt16(Expression expression) |
static NativeFunction |
ClickHouseFunctions.toUInt32(Expression expression) |
static NativeFunction |
ClickHouseFunctions.toUInt64(Expression expression) |
static NativeFunction |
ClickHouseFunctions.toUInt8(Expression expression) |
static NativeFunction |
ClickHouseFunctions.toUnixTimestamp(Expression expression) |
static NativeFunction |
ClickHouseFunctions.toUnixTimestamp(Expression expression,
Expression timeZone) |
static NativeFunction |
ClickHouseFunctions.toYear(Expression expression)
Converts a date or date with time to a UInt16 number containing the year number (AD).
|
static NativeFunction |
ClickHouseFunctions.toYYYYMM(Expression expression)
Converts a date or date with time to a UInt32 number containing the year and month number (YYYY * 100 + MM).
|
static NativeFunction |
ClickHouseFunctions.toYYYYMMDD(Expression expression)
Converts a date or date with time to a UInt32 number containing the year and month
number (YYYY * 10000 + MM * 100 + DD).
|
static NativeFunction |
ClickHouseFunctions.toYYYYMMDDhhmmss(Expression expression)
Converts a date or date with time to a UInt64 number containing the year and month number
(YYYY * 10000000000 + MM * 100000000 + DD * 1000000 + hh * 10000 + mm * 100 + ss).
|
static NativeFunction |
IsoFunctions.trim(Expression... expressions) |
static NativeFunction |
ClickHouseFunctions.yesterday()
Accepts zero arguments and returns yesterday’s date at one of the moments of request execution.
|
Copyright © 2020 com.github.braisdom. All rights reserved.