public class TableConstructorNamespace extends AbstractNamespace
VALUES (expr, expr, ...).| Modifier and Type | Field and Description |
|---|---|
private SqlValidatorScope |
scope |
private SqlCall |
values |
enclosingNode, rowType, type, validator| Constructor and Description |
|---|
TableConstructorNamespace(SqlValidatorImpl validator,
SqlCall values,
SqlValidatorScope scope,
SqlNode enclosingNode)
Creates a TableConstructorNamespace.
|
| Modifier and Type | Method and Description |
|---|---|
SqlNode |
getNode()
Returns the parse tree node at the root of this namespace.
|
SqlValidatorScope |
getScope()
Returns the scope.
|
boolean |
supportsModality(SqlModality modality)
Returns whether this namespace is capable of giving results of the desired
modality.
|
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, toStruct, translate, unwrap, validateprivate final SqlCall values
private final SqlValidatorScope scope
TableConstructorNamespace(SqlValidatorImpl validator, SqlCall values, SqlValidatorScope scope, SqlNode enclosingNode)
validator - Validatorvalues - VALUES parse tree nodescope - ScopeenclosingNode - Enclosing nodeprotected 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 SqlNode getNode()
SqlValidatorNamespaceTableNamespacepublic SqlValidatorScope getScope()
public boolean supportsModality(SqlModality modality)
SqlValidatorNamespacetrue means streaming, false means relational.supportsModality in interface SqlValidatorNamespacesupportsModality in class AbstractNamespacemodality - ModalityCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.