@PublicEvolving public final class ObjectIdentifier extends Object implements Serializable
While ObjectPath
is 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.
Modifier and Type | Method and Description |
---|---|
String |
asSerializableString()
Returns a string that fully serializes this instance.
|
String |
asSummaryString()
Returns a string that summarizes this instance for printing to a console or log.
|
boolean |
equals(Object o) |
String |
getCatalogName() |
String |
getDatabaseName() |
String |
getObjectName() |
int |
hashCode() |
static ObjectIdentifier |
of(String catalogName,
String databaseName,
String objectName) |
List<String> |
toList()
List of the component names of this object identifier.
|
ObjectPath |
toObjectPath()
Convert this
ObjectIdentifier to ObjectPath . |
String |
toString() |
public static ObjectIdentifier of(String catalogName, String databaseName, String objectName)
public String getCatalogName()
public String getDatabaseName()
public String getObjectName()
public ObjectPath toObjectPath() throws TableException
ObjectIdentifier
to ObjectPath
.TableException
- if the identifier cannot be convertedpublic String asSerializableString() throws TableException
TableException
- if the identifier cannot be serializedpublic String asSummaryString()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.