Package org.apache.calcite.sql.validate
Class SqlMonikerImpl
java.lang.Object
org.apache.calcite.sql.validate.SqlMonikerImpl
- All Implemented Interfaces:
SqlMoniker
A generic implementation of
SqlMoniker
.-
Field Summary
Fields inherited from interface org.apache.calcite.sql.validate.SqlMoniker
COMPARATOR
-
Constructor Summary
ConstructorDescriptionSqlMonikerImpl
(String name, SqlMonikerType type) Creates a moniker with a single name.SqlMonikerImpl
(List<String> names, SqlMonikerType type) Creates a moniker with an array of names. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the array of component names.getType()
Returns the type of object referred to by this moniker.int
hashCode()
id()
Creates aSqlIdentifier
containing the fully-qualified name.toString()
-
Constructor Details
-
SqlMonikerImpl
Creates a moniker with an array of names. -
SqlMonikerImpl
Creates a moniker with a single name.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getType
Description copied from interface:SqlMoniker
Returns the type of object referred to by this moniker. Never null.- Specified by:
getType
in interfaceSqlMoniker
-
getFullyQualifiedNames
Description copied from interface:SqlMoniker
Returns the array of component names.- Specified by:
getFullyQualifiedNames
in interfaceSqlMoniker
-
toIdentifier
Description copied from interface:SqlMoniker
Creates aSqlIdentifier
containing the fully-qualified name.- Specified by:
toIdentifier
in interfaceSqlMoniker
-
toString
-
id
- Specified by:
id
in interfaceSqlMoniker
-