|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.sql.validate.AbstractNamespace org.eigenbase.sql.validate.IdentifierNamespace
public class IdentifierNamespace
Namespace whose contents are defined by the type of an identifier
.
Field Summary | |
---|---|
private SqlIdentifier |
id
|
private List<Pair<SqlNode,SqlMonotonicity>> |
monotonicExprs
List of monotonic expressions. |
private SqlValidatorTable |
table
The underlying table. |
Fields inherited from class org.eigenbase.sql.validate.AbstractNamespace |
---|
enclosingNode, rowType, validator |
Constructor Summary | |
---|---|
IdentifierNamespace(SqlValidatorImpl validator,
SqlIdentifier id,
SqlNode enclosingNode)
Creates an IdentifierNamespace. |
Method Summary | |
---|---|
SqlIdentifier |
getId()
|
List<Pair<SqlNode,SqlMonotonicity>> |
getMonotonicExprs()
Returns a list of expressions which are monotonic in this namespace. |
SqlMonotonicity |
getMonotonicity(String columnName)
Returns whether and how a given column is sorted. |
SqlNode |
getNode()
Returns the parse tree node at the root of this namespace. |
SqlValidatorTable |
getTable()
Returns the underlying table, or null if there is none. |
SqlValidatorNamespace |
resolve(String name,
SqlValidatorScope[] ancestorOut,
int[] offsetOut)
|
RelDataType |
validateImpl()
Validates this scope and returns the type of the records it returns. |
Methods inherited from class org.eigenbase.sql.validate.AbstractNamespace |
---|
fieldExists, getEnclosingNode, getRowType, getRowTypeSansSystemColumns, getValidator, isWrapperFor, lookupChild, makeNullable, setRowType, translate, unwrap, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final SqlIdentifier id
private SqlValidatorTable table
private List<Pair<SqlNode,SqlMonotonicity>> monotonicExprs
Constructor Detail |
---|
IdentifierNamespace(SqlValidatorImpl validator, SqlIdentifier id, SqlNode enclosingNode)
validator
- Validatorid
- Identifier nodeenclosingNode
- Enclosing nodeMethod Detail |
---|
public RelDataType validateImpl()
AbstractNamespace
AbstractNamespace.validate()
, which uses the AbstractNamespace.status
field to protect against cycles.
validateImpl
in class AbstractNamespace
public SqlIdentifier getId()
public SqlNode getNode()
SqlValidatorNamespace
public SqlValidatorTable getTable()
SqlValidatorNamespace
getTable
in interface SqlValidatorNamespace
getTable
in class AbstractNamespace
public SqlValidatorNamespace resolve(String name, SqlValidatorScope[] ancestorOut, int[] offsetOut)
public List<Pair<SqlNode,SqlMonotonicity>> getMonotonicExprs()
SqlValidatorNamespace
SqlIdentifier
called "TIMESTAMP".
getMonotonicExprs
in interface SqlValidatorNamespace
getMonotonicExprs
in class AbstractNamespace
public SqlMonotonicity getMonotonicity(String columnName)
SqlValidatorNamespace
getMonotonicity
in interface SqlValidatorNamespace
getMonotonicity
in class AbstractNamespace
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |