| Modifier and Type | Field and Description |
|---|---|
| private int[] | |
| private int | |
| private final UserAggregate | |
| private JdbcConnection |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | createAggregateData()
Implements abstract org. Create aggregate data object specific to the subclass. |
| public Value | getAggregatedValue(SessionLocal
the session session, Object the aggregate data aggregateData)Implements abstract org. Returns aggregated value. |
| public int | getCost()
Implements abstract org. Estimate the cost to process the expression. |
| private Aggregate | |
| protected int | getNumExpressions()
Implements abstract org. Returns the number of expressions, excluding OVER clause. |
| public StringBuilder | getUnenclosedSQL(StringBuilder
string builder builder, int formatting flags sqlFlags)Implements abstract org. Get the SQL statement of this expression. |
| public boolean | isEverything(ExpressionVisitor
the visitor visitor)Overrides org. Check if this expression and all sub-expressions can fulfill a criteria. |
| public Expression | optimize(SessionLocal
the session session)Overrides org. Try to optimize the expression. |
| protected void | rememberExpressions(SessionLocal
the session session, Value[] array to store values of expressions array)Implements abstract org. Stores current values of expressions into the specified array. |
| protected void | updateAggregate(SessionLocal
the session session, Object aggregate data aggregateData)Implements abstract org. Updates an aggregate value. |
| private void | |
| protected void | updateFromExpressions(SessionLocal
the session session, Object aggregate data aggregateData, Value[] values of expressions array)Implements abstract org. Updates the provided aggregate data from the remembered expressions. |
| protected void | updateGroupAggregates(SessionLocal
the session session, int select stage stage)Overrides org. Invoked when processing group stage of grouped window queries to update arguments of this aggregate. |
| argTypes | back to summary |
|---|---|
| private int[] argTypes | |
| dataType | back to summary |
|---|---|
| private int dataType | |
| userAggregate | back to summary |
|---|---|
| private final UserAggregate userAggregate | |
| userConnection | back to summary |
|---|---|
| private JdbcConnection userConnection | |
| JavaAggregate | back to summary |
|---|---|
| public JavaAggregate(UserAggregate userAggregate, Expression[] args, Select select, boolean distinct) | |
| createAggregateData | back to summary |
|---|---|
| protected Object createAggregateData() Implements abstract org. Doc from org. Create aggregate data object specific to the subclass. | |
| getAggregatedValue | back to summary |
|---|---|
| public Value getAggregatedValue(SessionLocal session, Object aggregateData) Implements abstract org. Doc from org. Returns aggregated value.
| |
| getCost | back to summary |
|---|---|
| public int getCost() Implements abstract org. Doc from org. Estimate the cost to process the expression. Used when optimizing the query, to calculate the query plan with the lowest estimated cost.
| |
| getInstance | back to summary |
|---|---|
| private Aggregate getInstance() | |
| getNumExpressions | back to summary |
|---|---|
| protected int getNumExpressions() Implements abstract org. Doc from org. Returns the number of expressions, excluding OVER clause.
| |
| getUnenclosedSQL | back to summary |
|---|---|
| public StringBuilder getUnenclosedSQL(StringBuilder builder, int sqlFlags) Implements abstract org. Doc from org. Get the SQL statement of this expression. This may not always be the original SQL statement, especially after optimization. Enclosing '(' and ')' are never appended.
| |
| isEverything | back to summary |
|---|---|
| public boolean isEverything(ExpressionVisitor visitor) Overrides org. Doc from org. Check if this expression and all sub-expressions can fulfill a criteria. If any part returns false, the result is false.
| |
| optimize | back to summary |
|---|---|
| public Expression optimize(SessionLocal session) Overrides org. Doc from org. Try to optimize the expression.
| |
| rememberExpressions | back to summary |
|---|---|
| protected void rememberExpressions(SessionLocal session, Value[] array) Implements abstract org. Doc from org. Stores current values of expressions into the specified array.
| |
| updateAggregate | back to summary |
|---|---|
| protected void updateAggregate(SessionLocal session, Object aggregateData) Implements abstract org. Doc from org. Updates an aggregate value.
| |
| updateData | back to summary |
|---|---|
| private void updateData(SessionLocal session, Object aggregateData, Value[] remembered) | |
| updateFromExpressions | back to summary |
|---|---|
| protected void updateFromExpressions(SessionLocal session, Object aggregateData, Value[] array) Implements abstract org. Doc from org. Updates the provided aggregate data from the remembered expressions.
| |
| updateGroupAggregates | back to summary |
|---|---|
| protected void updateGroupAggregates(SessionLocal session, int stage) Overrides org. Doc from org. Invoked when processing group stage of grouped window queries to update arguments of this aggregate.
| |