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, setSourcepublic 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 rightSourceQueryPlanExceptionpublic Iterator<Record> execute() throws QueryPlanException, DatabaseException
execute in class QueryOperatorQueryPlanExceptionDatabaseExceptionpublic QueryOperator getSource() throws QueryPlanException
getSource in class QueryOperatorQueryPlanExceptionpublic QueryOperator getLeftSource()
public QueryOperator getRightSource()
public void setLeftSource(QueryOperator leftSource)
public void setRightSource(QueryOperator rightSource)
public Schema computeSchema() throws QueryPlanException
computeSchema in class QueryOperatorQueryPlanExceptionCopyright © 2017. All rights reserved.