public class BinaryOperation extends Operation2
| Modifier and Type | Class and Description |
|---|---|
static class |
BinaryOperation.OpType |
left, right, 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| Constructor and Description |
|---|
BinaryOperation(BinaryOperation.OpType opType,
Expression left,
Expression right) |
| Modifier and Type | Method and Description |
|---|---|
BinaryOperation.OpType |
getOperationType()
Returns the type of this binary operation.
|
java.lang.StringBuilder |
getUnenclosedSQL(java.lang.StringBuilder builder,
int sqlFlags)
Get the SQL statement of this expression.
|
Value |
getValue(SessionLocal session)
Return the resulting value for the current row.
|
boolean |
needParentheses()
Returns whether this expressions needs to be wrapped in parentheses when
it is used as an argument of other expressions.
|
Expression |
optimize(SessionLocal session)
Try to optimize the expression.
|
void |
setForcedType(TypeInfo forcedType)
Sets a forced data type of a datetime minus datetime operation.
|
getCost, getSubexpression, getSubexpressionCount, getType, isEverything, mapColumns, 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, optimizeCondition, toString, writeExpressions, writeExpressionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic BinaryOperation(BinaryOperation.OpType opType, Expression left, Expression right)
public void setForcedType(TypeInfo forcedType)
forcedType - the forced data typepublic boolean needParentheses()
ExpressionneedParentheses in class Expressiontrue if it ispublic java.lang.StringBuilder getUnenclosedSQL(java.lang.StringBuilder builder,
int sqlFlags)
ExpressiongetUnenclosedSQL in class Expressionbuilder - string buildersqlFlags - formatting flagspublic Value getValue(SessionLocal session)
ExpressiongetValue in class Expressionsession - the sessionpublic Expression optimize(SessionLocal session)
Expressionoptimize in class Expressionsession - the sessionpublic BinaryOperation.OpType getOperationType()