org.eigenbase.sql.validate
Class SetopNamespace

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

public class SetopNamespace
extends AbstractNamespace

Namespace based upon a set operation (UNION, INTERSECT, EXCEPT).

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

Field Summary
private  SqlCall call
           
 
Fields inherited from class org.eigenbase.sql.validate.AbstractNamespace
enclosingNode, rowType, validator
 
Constructor Summary
protected SetopNamespace(SqlValidatorImpl validator, SqlCall call, SqlNode enclosingNode)
          Creates a SetopNamespace.
 
Method Summary
 SqlNode getNode()
          Returns the parse tree node at the root of this namespace.
 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

call

private final SqlCall call
Constructor Detail

SetopNamespace

protected SetopNamespace(SqlValidatorImpl validator,
                         SqlCall call,
                         SqlNode enclosingNode)
Creates a SetopNamespace.

Parameters:
validator - Validator
call - Call to set operator
enclosingNode - Enclosing node
Method Detail

getNode

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

Returns:
parse tree node

validateImpl

public 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