Package org.apache.calcite.sql.validate
Class SqlIdentifierMoniker
- java.lang.Object
-
- org.apache.calcite.sql.validate.SqlIdentifierMoniker
-
- All Implemented Interfaces:
SqlMoniker
public class SqlIdentifierMoniker extends java.lang.Object implements SqlMoniker
An implementation ofSqlMoniker
that encapsulates the normalized name information of aSqlIdentifier
.
-
-
Field Summary
Fields Modifier and Type Field Description private SqlIdentifier
id
-
Fields inherited from interface org.apache.calcite.sql.validate.SqlMoniker
COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description SqlIdentifierMoniker(SqlIdentifier id)
Creates an SqlIdentifierMoniker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getFullyQualifiedNames()
Returns the array of component names.SqlMonikerType
getType()
Returns the type of object referred to by this moniker.java.lang.String
id()
SqlIdentifier
toIdentifier()
Creates aSqlIdentifier
containing the fully-qualified name.java.lang.String
toString()
-
-
-
Field Detail
-
id
private final SqlIdentifier id
-
-
Constructor Detail
-
SqlIdentifierMoniker
public SqlIdentifierMoniker(SqlIdentifier id)
Creates an SqlIdentifierMoniker.
-
-
Method Detail
-
getType
public SqlMonikerType getType()
Description copied from interface:SqlMoniker
Returns the type of object referred to by this moniker. Never null.- Specified by:
getType
in interfaceSqlMoniker
-
getFullyQualifiedNames
public java.util.List<java.lang.String> getFullyQualifiedNames()
Description copied from interface:SqlMoniker
Returns the array of component names.- Specified by:
getFullyQualifiedNames
in interfaceSqlMoniker
-
toIdentifier
public SqlIdentifier toIdentifier()
Description copied from interface:SqlMoniker
Creates aSqlIdentifier
containing the fully-qualified name.- Specified by:
toIdentifier
in interfaceSqlMoniker
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
id
public java.lang.String id()
- Specified by:
id
in interfaceSqlMoniker
-
-