| Modifier and Type | Field and Description |
|---|---|
| protected AggregatorInfoList | |
| protected GenericAggregator[] | |
| protected NoPutResultSet | |
| private final ExecIndexRow | |
| public NoPutResultSet |
| Access | Constructor and Description |
|---|---|
| pack-priv | GenericAggregateResultSet(NoPutResultSet s, int aggregateItem, Activation
activation a, int reference to a saved row allocator instance ra, int result set number resultSetNumber, double optimizer estimated row count optimizerEstimatedRowCount, double optimizer estimated cost optimizerEstimatedCost)Constructor |
| Modifier and Type | Method and Description |
|---|---|
| public void | finish()
Overrides org. Implements org. Tells the system that there will be no more access to any database information via this result set; in particular, no more calls to open(). |
| protected final ExecIndexRow | Returns: the result row. If the input row != null, then the result row == input rowthe row to finish aggregation row)Finish the aggregation for the current row. |
| pack-priv ExecIndexRow | Returns: a row template of the right shape for this result setGet a template row of the right shape for sorting or returning results. |
| protected final GenericAggregator[] | Returns: the array of GenericAggregatorsthe list of aggregators to set up list, boolean should distincts be ignored.
Used to toss out distinct aggregates for a prelim
sort. eliminateDistincts, LanguageConnectionContext the lcc lcc, NoPutResultSet the incoming result set inputResultSet)For each AggregatorInfo in the list, generate a GenericAggregator and stick it in an array of GenericAggregators. |
| public Element | toXML(Element
Node to put content into. parentNode, String Element tag for content tag)Overrides org. Implements org. Produce an xml image of this ResultSet and its descendant ResultSets. |
| aggInfoList | back to summary |
|---|---|
| protected AggregatorInfoList aggInfoList | |
| aggregates | back to summary |
|---|---|
| protected GenericAggregator[] aggregates | |
| originalSource | back to summary |
|---|---|
| protected NoPutResultSet originalSource | |
| rowTemplate | back to summary |
|---|---|
| private final ExecIndexRow rowTemplate | |
| source | back to summary |
|---|---|
| public NoPutResultSet source | |
| GenericAggregateResultSet | back to summary |
|---|---|
| pack-priv GenericAggregateResultSet(NoPutResultSet s, int aggregateItem, Activation a, int ra, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost) throws StandardException Constructor
| |
| finish | back to summary |
|---|---|
| public void finish() throws StandardException Overrides org. Implements org. Doc from org. Tells the system that there will be no more access to any database information via this result set; in particular, no more calls to open(). Will close the result set if it is not already closed.
| |
| finishAggregation | back to summary |
|---|---|
| protected final ExecIndexRow finishAggregation(ExecIndexRow row) throws StandardException Finish the aggregation for the current row. Basically call finish() on each aggregator on this row. Called once per grouping on a vector aggregate or once per table on a scalar aggregate. If the input row is null, then rowAllocator is invoked to create a new row. That row is then initialized and used for the output of the aggregation.
| |
| getRowTemplate | back to summary |
|---|---|
| pack-priv ExecIndexRow getRowTemplate() Get a template row of the right shape for sorting or returning results. The template is cached, so it may need to be cloned if callers use it for multiple purposes at the same time.
| |
| getSortAggregators | back to summary |
|---|---|
| protected final GenericAggregator[] getSortAggregators(AggregatorInfoList list, boolean eliminateDistincts, LanguageConnectionContext lcc, NoPutResultSet inputResultSet) throws StandardException For each AggregatorInfo in the list, generate a GenericAggregator and stick it in an array of GenericAggregators.
| |
| toXML | back to summary |
|---|---|
| public Element toXML(Element parentNode, String tag) throws Exception Overrides org. Implements org. Doc from org. Produce an xml image of this ResultSet and its descendant ResultSets. Appends an element to the parentNode and returns the appended element. | |