public class SetopNamespace extends AbstractNamespace
Modifier and Type | Field and Description |
---|---|
private SqlCall |
call |
enclosingNode, rowType, type, validator
Modifier | Constructor and Description |
---|---|
protected |
SetopNamespace(SqlValidatorImpl validator,
SqlCall call,
SqlNode enclosingNode)
Creates a
SetopNamespace . |
Modifier and Type | Method and Description |
---|---|
private SqlMonotonicity |
combine(SqlMonotonicity m0,
SqlMonotonicity m1) |
SqlMonotonicity |
getMonotonicity(java.lang.String columnName)
Returns whether and how a given column is sorted.
|
SqlNode |
getNode()
Returns the parse tree node at the root of this namespace.
|
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, supportsModality, toStruct, translate, unwrap, validate
private final SqlCall call
protected SetopNamespace(SqlValidatorImpl validator, SqlCall call, SqlNode enclosingNode)
SetopNamespace
.validator
- Validatorcall
- Call to set operatorenclosingNode
- Enclosing nodepublic SqlNode getNode()
SqlValidatorNamespace
TableNamespace
public SqlMonotonicity getMonotonicity(java.lang.String columnName)
SqlValidatorNamespace
getMonotonicity
in interface SqlValidatorNamespace
getMonotonicity
in class AbstractNamespace
private SqlMonotonicity combine(SqlMonotonicity m0, SqlMonotonicity m1)
public 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'.Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.