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
ConstructorsConstructorDescriptionSqlMonikerImpl(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 TypeMethodDescriptionbooleanReturns the array of component names.getType()Returns the type of object referred to by this moniker.inthashCode()id()Creates aSqlIdentifiercontaining 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:SqlMonikerReturns the type of object referred to by this moniker. Never null.- Specified by:
getTypein interfaceSqlMoniker
-
getFullyQualifiedNames
Description copied from interface:SqlMonikerReturns the array of component names.- Specified by:
getFullyQualifiedNamesin interfaceSqlMoniker
-
toIdentifier
Description copied from interface:SqlMonikerCreates aSqlIdentifiercontaining the fully-qualified name.- Specified by:
toIdentifierin interfaceSqlMoniker
-
toString
-
id
- Specified by:
idin interfaceSqlMoniker
-