public abstract class OperationN extends Expression implements ExpressionWithVariableParameters
| 限定符和类型 | 字段和说明 |
|---|---|
protected Expression[] |
args
The array of arguments.
|
protected int |
argsCount
The number of arguments.
|
protected TypeInfo |
type
The type of the result.
|
AUTO_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| 限定符 | 构造器和说明 |
|---|---|
protected |
OperationN(Expression[] args) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addParameter(Expression param)
Adds the parameter expression.
|
void |
doneWithParameters()
This method must be called after all the parameters have been set.
|
int |
getCost()
Estimate the cost to process the expression.
|
Expression |
getSubexpression(int index)
Returns subexpression with specified index.
|
int |
getSubexpressionCount()
Returns count of subexpressions.
|
TypeInfo |
getType()
Returns the data type.
|
boolean |
isEverything(ExpressionVisitor visitor)
Check if this expression and all sub-expressions can fulfill a criteria.
|
void |
mapColumns(ColumnResolver resolver,
int level,
int state)
Map the columns of the resolver to expression columns.
|
protected boolean |
optimizeArguments(SessionLocal session,
boolean allConst)
Optimizes arguments.
|
void |
setEvaluatable(TableFilter tableFilter,
boolean value)
Tell the expression columns whether the table filter can return values
now.
|
void |
updateAggregate(SessionLocal session,
int stage)
Update an aggregate value.
|
addFilterConditions, createIndexConditions, getAlias, getBooleanValue, getColumnName, getColumnNameForView, getEnclosedSQL, getNonAliasExpression, getNotIfPossible, getNullable, getSchemaName, getSQL, getSQL, getSQL, getSQL, getTableAlias, getTableName, getUnenclosedSQL, getValue, getWhenSQL, getWhenValue, isConstant, isIdentity, isNullConstant, isValueSet, isWhenConditionOperand, needParentheses, optimize, optimizeCondition, toString, writeExpressions, writeExpressionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLprotected Expression[] args
protected int argsCount
protected TypeInfo type
protected OperationN(Expression[] args)
public void addParameter(Expression param)
ExpressionWithVariableParametersaddParameter 在接口中 ExpressionWithVariableParametersparam - the expressionpublic void doneWithParameters()
throws DbException
ExpressionWithVariableParametersdoneWithParameters 在接口中 ExpressionWithVariableParametersDbException - if the parameter count is incorrect.public TypeInfo getType()
ExpressiongetType 在接口中 TypedgetType 在类中 Expressionpublic void mapColumns(ColumnResolver resolver, int level, int state)
ExpressionmapColumns 在类中 Expressionresolver - the column resolverlevel - the subquery nesting levelstate - current state for nesting checks, initial value is
Expression.MAP_INITIALprotected boolean optimizeArguments(SessionLocal session, boolean allConst)
session - the sessionallConst - whether operation is deterministicpublic void setEvaluatable(TableFilter tableFilter, boolean value)
ExpressionsetEvaluatable 在类中 ExpressiontableFilter - the table filtervalue - true if the table filter can return valuepublic void updateAggregate(SessionLocal session, int stage)
ExpressionupdateAggregate 在类中 Expressionsession - the sessionstage - select stagepublic boolean isEverything(ExpressionVisitor visitor)
ExpressionisEverything 在类中 Expressionvisitor - the visitorpublic int getCost()
ExpressiongetCost 在类中 Expressionpublic int getSubexpressionCount()
ExpressiongetSubexpressionCount 在类中 Expressionpublic Expression getSubexpression(int index)
ExpressiongetSubexpression 在类中 Expressionindex - 0-based indexCopyright © 2022. All rights reserved.