Package org.apache.calcite.sql.validate
Class SqlValidatorScope.Path
- java.lang.Object
-
- org.apache.calcite.sql.validate.SqlValidatorScope.Path
-
- Direct Known Subclasses:
SqlValidatorScope.EmptyPath
,SqlValidatorScope.Step
- Enclosing interface:
- SqlValidatorScope
public abstract static class SqlValidatorScope.Path extends java.lang.Object
A sequence of steps by which an identifier was resolved. Immutable.
-
-
Field Summary
Fields Modifier and Type Field Description static SqlValidatorScope.EmptyPath
EMPTY
The empty path.
-
Constructor Summary
Constructors Constructor Description Path()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
build(com.google.common.collect.ImmutableList.Builder<SqlValidatorScope.Step> paths)
SqlValidatorScope.Step
plus(RelDataType rowType, int i, java.lang.String name, StructKind kind)
Creates a path that consists of this path plus one additional step.int
stepCount()
Number of steps in this path.(package private) java.util.List<java.lang.String>
stepNames()
Returns a list ["step1", "step2"].java.util.List<SqlValidatorScope.Step>
steps()
Returns the steps in this path.java.lang.String
toString()
-
-
-
Field Detail
-
EMPTY
public static final SqlValidatorScope.EmptyPath EMPTY
The empty path.
-
-
Method Detail
-
plus
public SqlValidatorScope.Step plus(RelDataType rowType, int i, java.lang.String name, StructKind kind)
Creates a path that consists of this path plus one additional step.
-
stepCount
public int stepCount()
Number of steps in this path.
-
steps
public java.util.List<SqlValidatorScope.Step> steps()
Returns the steps in this path.
-
stepNames
java.util.List<java.lang.String> stepNames()
Returns a list ["step1", "step2"].
-
build
protected void build(com.google.common.collect.ImmutableList.Builder<SqlValidatorScope.Step> paths)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-