public final class FunctionsMySQL extends ModeFunction
info, VAR_ARGSargs, argsCount, typeAUTO_PARENTHESES, MAP_IN_AGGREGATE, MAP_IN_WINDOW, MAP_INITIAL, WITH_PARENTHESES, WITHOUT_PARENTHESESADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS| Modifier and Type | Method and Description |
|---|---|
protected void |
checkParameterCount(int len)
Check if the parameter count is correct.
|
static java.lang.String |
fromUnixTime(int seconds)
See
https://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_from-unixtime
|
static java.lang.String |
fromUnixTime(int seconds,
java.lang.String format)
See
https://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_from-unixtime
|
static FunctionsMySQL |
getFunction(java.lang.String upperName)
Returns mode-specific function for a given name, or
null. |
Value |
getValue(SessionLocal session)
Return the resulting value for the current row.
|
Expression |
optimize(SessionLocal session)
Try to optimize the expression.
|
static int |
unixTimestamp(SessionLocal session,
Value value)
Get the seconds since 1970-01-01 00:00:00 UTC of the given timestamp.
|
doneWithParameters, getCompatibilityDateTimeValueFunction, getFunction, getName, isEverythinggetUnenclosedSQL, getValueaddParameter, getCost, getSubexpression, getSubexpressionCount, getType, mapColumns, optimizeArguments, setEvaluatable, updateAggregateaddFilterConditions, createIndexConditions, getAlias, getBooleanValue, getColumnName, getColumnNameForView, getEnclosedSQL, getNonAliasExpression, getNotIfPossible, getNullable, getSchemaName, getSQL, getSQL, getSQL, getSQL, getTableAlias, getTableName, getWhenSQL, getWhenValue, isConstant, isIdentity, isNullConstant, isValueSet, isWhenConditionOperand, needParentheses, optimizeCondition, toString, writeExpressions, writeExpressionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic static int unixTimestamp(SessionLocal session, Value value)
session - the sessionvalue - the timestamppublic static java.lang.String fromUnixTime(int seconds)
seconds - The current timestamp in seconds.public static java.lang.String fromUnixTime(int seconds,
java.lang.String format)
seconds - The current timestamp in seconds.format - The format of the date/time String to return.public static FunctionsMySQL getFunction(java.lang.String upperName)
null.upperName - the upper-case name of a functionnullprotected void checkParameterCount(int len)
ModeFunctionlen - the number of parameters setpublic Expression optimize(SessionLocal session)
Expressionoptimize in class Expressionsession - the sessionpublic Value getValue(SessionLocal session)
Expression