public class JavaAggregate extends AbstractAggregate
args, distinct, filterCondition, typeover, overOrderBySort, select, STAGE_GROUP, STAGE_RESET, STAGE_WINDOWAUTO_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| 构造器和说明 |
|---|
JavaAggregate(UserAggregate userAggregate,
Expression[] args,
Select select,
boolean distinct) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Object |
createAggregateData()
Create aggregate data object specific to the subclass.
|
Value |
getAggregatedValue(SessionLocal session,
Object aggregateData)
Returns aggregated value.
|
int |
getCost()
Estimate the cost to process the expression.
|
protected int |
getNumExpressions()
Returns the number of expressions, excluding OVER clause.
|
StringBuilder |
getUnenclosedSQL(StringBuilder builder,
int sqlFlags)
Get the SQL statement of this expression.
|
boolean |
isEverything(ExpressionVisitor visitor)
Check if this expression and all sub-expressions can fulfill a criteria.
|
Expression |
optimize(SessionLocal session)
Try to optimize the expression.
|
protected void |
rememberExpressions(SessionLocal session,
Value[] array)
Stores current values of expressions into the specified array.
|
protected void |
updateAggregate(SessionLocal session,
Object aggregateData)
Updates an aggregate value.
|
protected void |
updateFromExpressions(SessionLocal session,
Object aggregateData,
Value[] array)
Updates the provided aggregate data from the remembered expressions.
|
protected void |
updateGroupAggregates(SessionLocal session,
int stage)
Invoked when processing group stage of grouped window queries to update
arguments of this aggregate.
|
appendTailConditions, getFilterCondition, getOrderedResultLoop, getSubexpression, getSubexpressionCount, getType, isAggregate, mapColumnsAnalysis, setEvaluatable, setFilterCondition, updateAggregatecreateOrder, getGroupData, getOverCondition, getOverOrderBySort, getValue, getWindowData, mapColumns, setOverCondition, updateAggregate, updateOrderedAggregateaddFilterConditions, 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 JavaAggregate(UserAggregate userAggregate, Expression[] args, Select select, boolean distinct)
public int getCost()
ExpressiongetCost 在类中 Expressionpublic StringBuilder getUnenclosedSQL(StringBuilder builder, int sqlFlags)
ExpressiongetUnenclosedSQL 在类中 Expressionbuilder - string buildersqlFlags - formatting flagspublic boolean isEverything(ExpressionVisitor visitor)
ExpressionisEverything 在类中 DataAnalysisOperationvisitor - the visitorpublic Expression optimize(SessionLocal session)
Expressionoptimize 在类中 AbstractAggregatesession - the sessionpublic Value getAggregatedValue(SessionLocal session, Object aggregateData)
DataAnalysisOperationgetAggregatedValue 在类中 DataAnalysisOperationsession - the sessionaggregateData - the aggregate dataprotected void updateAggregate(SessionLocal session, Object aggregateData)
AbstractAggregateupdateAggregate 在类中 AbstractAggregatesession - the sessionaggregateData - aggregate dataprotected void updateGroupAggregates(SessionLocal session, int stage)
DataAnalysisOperationupdateGroupAggregates 在类中 AbstractAggregatesession - the sessionstage - select stageprotected int getNumExpressions()
DataAnalysisOperationgetNumExpressions 在类中 DataAnalysisOperationprotected void rememberExpressions(SessionLocal session, Value[] array)
DataAnalysisOperationrememberExpressions 在类中 DataAnalysisOperationsession - the sessionarray - array to store values of expressionsprotected void updateFromExpressions(SessionLocal session, Object aggregateData, Value[] array)
AbstractAggregateupdateFromExpressions 在类中 AbstractAggregatesession - the sessionaggregateData - aggregate dataarray - values of expressionsprotected Object createAggregateData()
DataAnalysisOperationcreateAggregateData 在类中 DataAnalysisOperationCopyright © 2022. All rights reserved.