Package org.apache.calcite.sql.validate
Class ParameterScope
- java.lang.Object
-
- org.apache.calcite.sql.validate.EmptyScope
-
- org.apache.calcite.sql.validate.ParameterScope
-
- All Implemented Interfaces:
SqlValidatorScope
public class ParameterScope extends EmptyScope
A scope which contains nothing besides a few parameters. LikeEmptyScope
(which is its base class), it has no parent scope.- See Also:
ParameterNamespace
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.calcite.sql.validate.SqlValidatorScope
SqlValidatorScope.EmptyPath, SqlValidatorScope.Path, SqlValidatorScope.Resolve, SqlValidatorScope.Resolved, SqlValidatorScope.ResolvedImpl, SqlValidatorScope.Step
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,RelDataType>
nameToTypeMap
Map from the simple names of the parameters to types of the parameters (RelDataType
).-
Fields inherited from class org.apache.calcite.sql.validate.EmptyScope
validator
-
-
Constructor Summary
Constructors Constructor Description ParameterScope(SqlValidatorImpl validator, java.util.Map<java.lang.String,RelDataType> nameToTypeMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlQualified
fullyQualify(SqlIdentifier identifier)
Converts an identifier into a fully-qualified identifier.SqlValidatorScope
getOperandScope(SqlCall call)
Returns the scope within which operands to a call are to be validated.-
Methods inherited from class org.apache.calcite.sql.validate.EmptyScope
addChild, findAliases, findAllColumnNames, findAllTableNames, findQualifyingTableName, findQualifyingTableNames, getMonotonicity, getNode, getOrderList, getTableNamespace, getValidator, lookupWindow, nullifyType, resolve, resolveColumn, resolveTable, validateExpr
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.calcite.sql.validate.SqlValidatorScope
isWithin
-
-
-
-
Field Detail
-
nameToTypeMap
private final java.util.Map<java.lang.String,RelDataType> nameToTypeMap
Map from the simple names of the parameters to types of the parameters (RelDataType
).
-
-
Constructor Detail
-
ParameterScope
public ParameterScope(SqlValidatorImpl validator, java.util.Map<java.lang.String,RelDataType> nameToTypeMap)
-
-
Method Detail
-
fullyQualify
public SqlQualified fullyQualify(SqlIdentifier identifier)
Description copied from interface:SqlValidatorScope
Converts an identifier into a fully-qualified identifier. For example, the "empno" in "select empno from emp natural join dept" becomes "emp.empno".- Specified by:
fullyQualify
in interfaceSqlValidatorScope
- Overrides:
fullyQualify
in classEmptyScope
- Returns:
- A qualified identifier, never null
-
getOperandScope
public SqlValidatorScope getOperandScope(SqlCall call)
Description copied from interface:SqlValidatorScope
Returns the scope within which operands to a call are to be validated. Usually it is this scope, but when the call is to an aggregate function and this is an aggregating scope, it will be a a different scope.- Specified by:
getOperandScope
in interfaceSqlValidatorScope
- Overrides:
getOperandScope
in classEmptyScope
- Parameters:
call
- Call- Returns:
- Scope within which to validate arguments to call.
-
-