public class ProjectOperator extends QueryOperator
QueryOperator.OperatorType| Constructor and Description | 
|---|
ProjectOperator(QueryOperator source,
              List<String> columns,
              boolean count,
              String averageColumn,
              String sumColumn)
Creates a new ProjectOperator that reads tuples from source and filters out columns. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected Schema | 
computeSchema()  | 
Iterator<Record> | 
execute()
Joins tuples from leftSource with tuples from rightSource based on whether the values in column
 leftColumnName are equal to tha values in column rightColumnName. 
 | 
checkColumnNameEquality, checkSchemaForColumn, getDestination, getOutputSchema, getSource, getType, isGroupBy, isIndexScan, isJoin, isSelect, isSequentialScan, isWhere, setDestination, setOutputSchema, setSourcepublic ProjectOperator(QueryOperator source, List<String> columns, boolean count, String averageColumn, String sumColumn) throws QueryPlanException
source - columns - count - averageColumn - sumColumn - QueryPlanExceptionprotected Schema computeSchema() throws QueryPlanException
computeSchema in class QueryOperatorQueryPlanExceptionpublic Iterator<Record> execute() throws QueryPlanException, DatabaseException
execute in class QueryOperatorQueryPlanExceptionDatabaseExceptionCopyright © 2017. All rights reserved.