public class JoinOperator extends QueryOperator
QueryOperator.OperatorType
Constructor and Description |
---|
JoinOperator(QueryOperator leftSource,
QueryOperator rightSource,
String leftColumnName,
String rightColumnName)
Create a join operator that pulls tuples from leftSource and rightSource.
|
Modifier and Type | Method and Description |
---|---|
Schema |
computeSchema() |
Iterator<Record> |
execute()
Joins tuples from leftSource and rightSource and returns an iterator of records.
|
QueryOperator |
getLeftSource() |
QueryOperator |
getRightSource() |
QueryOperator |
getSource() |
void |
setLeftSource(QueryOperator leftSource) |
void |
setRightSource(QueryOperator rightSource) |
checkColumnNameEquality, checkSchemaForColumn, getDestination, getOutputSchema, getType, isGroupBy, isIndexScan, isJoin, isSelect, isSequentialScan, isWhere, setDestination, setOutputSchema, setSource
public JoinOperator(QueryOperator leftSource, QueryOperator rightSource, String leftColumnName, String rightColumnName) throws QueryPlanException
leftSource
- the left source operatorrightSource
- the right source operatorleftColumnName
- the column to join on from leftSourcerightColumnName
- the column to join on from rightSourceQueryPlanException
public Iterator<Record> execute() throws QueryPlanException, DatabaseException
execute
in class QueryOperator
QueryPlanException
DatabaseException
public QueryOperator getSource() throws QueryPlanException
getSource
in class QueryOperator
QueryPlanException
public QueryOperator getLeftSource()
public QueryOperator getRightSource()
public void setLeftSource(QueryOperator leftSource)
public void setRightSource(QueryOperator rightSource)
public Schema computeSchema() throws QueryPlanException
computeSchema
in class QueryOperator
QueryPlanException
Copyright © 2017. All rights reserved.