class WithItemNamespace extends AbstractNamespace
AliasNamespace
.Modifier and Type | Field and Description |
---|---|
private SqlWithItem |
withItem |
enclosingNode, rowType, type, validator
Constructor and Description |
---|
WithItemNamespace(SqlValidatorImpl validator,
SqlWithItem withItem,
SqlNode enclosingNode) |
Modifier and Type | Method and Description |
---|---|
SqlNode |
getNode()
Returns the parse tree node at the root of this namespace.
|
java.lang.String |
translate(java.lang.String name) |
protected RelDataType |
validateImpl(RelDataType targetRowType)
Validates this scope and returns the type of the records it returns.
|
convertToStruct, fieldExists, getEnclosingNode, getMonotonicExprs, getMonotonicity, getRowType, getRowTypeSansSystemColumns, getTable, getType, getValidator, isWrapperFor, lookupChild, makeNullable, resolve, setType, supportsModality, toStruct, unwrap, validate
private final SqlWithItem withItem
WithItemNamespace(SqlValidatorImpl validator, SqlWithItem withItem, SqlNode enclosingNode)
protected RelDataType validateImpl(RelDataType targetRowType)
AbstractNamespace
AbstractNamespace.validate(org.apache.calcite.rel.type.RelDataType)
, which uses the
AbstractNamespace.status
field to protect against cycles.validateImpl
in class AbstractNamespace
targetRowType
- Desired row type, must not be null, may be the data
type 'unknown'.public SqlNode getNode()
SqlValidatorNamespace
TableNamespace
public java.lang.String translate(java.lang.String name)
translate
in class AbstractNamespace
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.