org.eigenbase.sql.validate
Class JoinNamespace

java.lang.Object
  extended by org.eigenbase.sql.validate.AbstractNamespace
      extended by org.eigenbase.sql.validate.JoinNamespace
All Implemented Interfaces:
SqlValidatorNamespace

 class JoinNamespace
extends AbstractNamespace

Namespace representing the row type produced by joining two relations.

Since:
Mar 25, 2003
Version:
$Id: //open/dev/farrago/src/org/eigenbase/sql/validate/JoinNamespace.java#10 $
Author:
jhyde

Field Summary
private  SqlJoin join
           
 
Fields inherited from class org.eigenbase.sql.validate.AbstractNamespace
enclosingNode, rowType, validator
 
Constructor Summary
JoinNamespace(SqlValidatorImpl validator, SqlJoin join)
           
 
Method Summary
 SqlNode getNode()
          Returns the parse tree node at the root of this namespace.
protected  RelDataType validateImpl()
          Validates this scope and returns the type of the records it returns.
 
Methods inherited from class org.eigenbase.sql.validate.AbstractNamespace
fieldExists, getEnclosingNode, getMonotonicExprs, getMonotonicity, getRowType, getRowTypeSansSystemColumns, getTable, getValidator, isWrapperFor, lookupChild, makeNullable, setRowType, translate, unwrap, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

join

private final SqlJoin join
Constructor Detail

JoinNamespace

JoinNamespace(SqlValidatorImpl validator,
              SqlJoin join)
Method Detail

validateImpl

protected RelDataType validateImpl()
Description copied from class: AbstractNamespace
Validates this scope and returns the type of the records it returns. External users should call AbstractNamespace.validate(), which uses the AbstractNamespace.status field to protect against cycles.

Specified by:
validateImpl in class AbstractNamespace
Returns:
record data type, never null

getNode

public SqlNode getNode()
Description copied from interface: SqlValidatorNamespace
Returns the parse tree node at the root of this namespace.

Returns:
parse tree node