org.eigenbase.sql.validate
Class ProcedureNamespace
java.lang.Object
org.eigenbase.sql.validate.AbstractNamespace
org.eigenbase.sql.validate.ProcedureNamespace
- All Implemented Interfaces:
- SqlValidatorNamespace
public class ProcedureNamespace
- extends AbstractNamespace
Namespace whose contents are defined by the result of a call to a
user-defined procedure.
- Version:
- $Id: //open/dev/farrago/src/org/eigenbase/sql/validate/ProcedureNamespace.java#8 $
- Author:
- John V. Sichi
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 |
scope
private final SqlValidatorScope scope
call
private final SqlCall call
ProcedureNamespace
ProcedureNamespace(SqlValidatorImpl validator,
SqlValidatorScope scope,
SqlCall call,
SqlNode enclosingNode)
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
getNode
public SqlNode getNode()
- Description copied from interface:
SqlValidatorNamespace
- Returns the parse tree node at the root of this namespace.
- Returns:
- parse tree node