Package org.apache.flink.table.catalog
Class ObjectIdentifier
- java.lang.Object
-
- org.apache.flink.table.catalog.ObjectIdentifier
-
- All Implemented Interfaces:
Serializable
@PublicEvolving public final class ObjectIdentifier extends Object implements Serializable
Identifies an object in a catalog. It allows to identify objects such as tables, views, function, or types in a catalog. An identifier must be fully qualified. It is the responsibility of the catalog manager to resolve an identifier to an object.While
ObjectPathis used within the same catalog, instances of this class can be used across catalogs.Two objects are considered equal if they share the same object identifier in a stable session context.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasSerializableString()Returns a string that fully serializes this instance.StringasSummaryString()Returns a string that summarizes this instance for printing to a console or log.booleanequals(Object o)StringgetCatalogName()StringgetDatabaseName()StringgetObjectName()inthashCode()static ObjectIdentifierof(String catalogName, String databaseName, String objectName)List<String>toList()List of the component names of this object identifier.ObjectPathtoObjectPath()Convert thisObjectIdentifiertoObjectPath.StringtoString()
-
-
-
Method Detail
-
of
public static ObjectIdentifier of(String catalogName, String databaseName, String objectName)
-
getCatalogName
public String getCatalogName()
-
getDatabaseName
public String getDatabaseName()
-
getObjectName
public String getObjectName()
-
toObjectPath
public ObjectPath toObjectPath() throws TableException
Convert thisObjectIdentifiertoObjectPath.- Throws:
TableException- if the identifier cannot be converted
-
asSerializableString
public String asSerializableString() throws TableException
Returns a string that fully serializes this instance. The serialized string can be used for transmitting or persisting an object identifier.- Throws:
TableException- if the identifier cannot be serialized
-
asSummaryString
public String asSummaryString()
Returns a string that summarizes this instance for printing to a console or log.
-
-