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, setSource
public ProjectOperator(QueryOperator source, List<String> columns, boolean count, String averageColumn, String sumColumn) throws QueryPlanException
source
- columns
- count
- averageColumn
- sumColumn
- QueryPlanException
protected Schema computeSchema() throws QueryPlanException
computeSchema
in class QueryOperator
QueryPlanException
public Iterator<Record> execute() throws QueryPlanException, DatabaseException
execute
in class QueryOperator
QueryPlanException
DatabaseException
Copyright © 2017. All rights reserved.