public class GroupByOperator extends QueryOperator
QueryOperator.OperatorType| Constructor and Description | 
|---|
GroupByOperator(QueryOperator source,
               Database.Transaction transaction,
               String groupByColumn)
Create a new GroupByOperator that pulls from source and groups by groupByColumn. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected Schema | 
computeSchema()  | 
Iterator<Record> | 
execute()
Read input tuples from source, group by groupByColumn, and return an iterator. 
 | 
checkColumnNameEquality, checkSchemaForColumn, getDestination, getOutputSchema, getSource, getType, isGroupBy, isIndexScan, isJoin, isSelect, isSequentialScan, isWhere, setDestination, setOutputSchema, setSourcepublic GroupByOperator(QueryOperator source, Database.Transaction transaction, String groupByColumn) throws QueryPlanException
source - the source operator of this operatortransaction - the transaction containing this operatorgroupByColumn - the column to group onQueryPlanExceptionpublic Iterator<Record> execute() throws QueryPlanException, DatabaseException
execute in class QueryOperatorQueryPlanExceptionDatabaseExceptionprotected Schema computeSchema() throws QueryPlanException
computeSchema in class QueryOperatorQueryPlanExceptionCopyright © 2017. All rights reserved.