public class SelectNamespace extends AbstractNamespace
SelectScope,
SetopNamespace| Modifier and Type | Field and Description |
|---|---|
private SqlSelect |
select |
enclosingNode, rowType, type, validator| Constructor and Description |
|---|
SelectNamespace(SqlValidatorImpl validator,
SqlSelect select,
SqlNode enclosingNode)
Creates a SelectNamespace.
|
| Modifier and Type | Method and Description |
|---|---|
SqlMonotonicity |
getMonotonicity(String columnName)
Returns whether and how a given column is sorted.
|
SqlSelect |
getNode()
Returns the parse tree node at the root of this namespace.
|
boolean |
supportsModality(SqlModality modality)
Returns whether this namespace is capable of giving results of the desired
modality.
|
RelDataType |
validateImpl(RelDataType targetRowType)
Validates this scope and returns the type of the records it returns.
|
convertToStruct, fieldExists, getEnclosingNode, getMonotonicExprs, getRowType, getRowTypeSansSystemColumns, getTable, getType, getValidator, isWrapperFor, lookupChild, makeNullable, resolve, setType, toStruct, translate, unwrap, validateprivate final SqlSelect select
public SelectNamespace(SqlValidatorImpl validator, SqlSelect select, SqlNode enclosingNode)
validator - Validateselect - Select nodeenclosingNode - Enclosing nodepublic SqlSelect getNode()
SqlValidatorNamespaceTableNamespacepublic RelDataType validateImpl(RelDataType targetRowType)
AbstractNamespaceAbstractNamespace.validate(org.apache.calcite.rel.type.RelDataType), which uses the
AbstractNamespace.status field to protect against cycles.validateImpl in class AbstractNamespacetargetRowType - Desired row type, must not be null, may be the data
type 'unknown'.public boolean supportsModality(SqlModality modality)
SqlValidatorNamespacetrue means streaming, false means relational.supportsModality in interface SqlValidatorNamespacesupportsModality in class AbstractNamespacemodality - Modalitypublic SqlMonotonicity getMonotonicity(String columnName)
SqlValidatorNamespacegetMonotonicity in interface SqlValidatorNamespacegetMonotonicity in class AbstractNamespaceCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.