Package org.apache.flink.table.catalog
Class UnresolvedIdentifier
- java.lang.Object
-
- org.apache.flink.table.catalog.UnresolvedIdentifier
-
@PublicEvolving public final class UnresolvedIdentifier extends Object
Identifier of an object, such as table, view, function or type in a catalog. This identifier cannot be used directly to access an object in a catalog manager, but has to be first fully resolved intoObjectIdentifier.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasSummaryString()Returns a string that summarizes this instance for printing to a console or log.booleanequals(Object o)Optional<String>getCatalogName()Optional<String>getDatabaseName()StringgetObjectName()inthashCode()static UnresolvedIdentifierof(String... path)Constructs anUnresolvedIdentifierfrom an array of identifier segments.static UnresolvedIdentifierof(List<String> path)Constructs anUnresolvedIdentifierfrom a list of identifier segments.static UnresolvedIdentifierof(ObjectIdentifier objectIdentifier)Constructs anUnresolvedIdentifierfrom anObjectIdentifier.StringtoString()
-
-
-
Method Detail
-
of
public static UnresolvedIdentifier of(String... path)
Constructs anUnresolvedIdentifierfrom an array of identifier segments. The length of the path must be between 1 (only object name) and 3 (fully qualified identifier with catalog, database and object name).- Parameters:
path- array of identifier segments- Returns:
- an identifier that must be resolved before accessing an object from a catalog manager
-
of
public static UnresolvedIdentifier of(List<String> path)
Constructs anUnresolvedIdentifierfrom a list of identifier segments.- See Also:
of(String...)
-
of
public static UnresolvedIdentifier of(ObjectIdentifier objectIdentifier)
Constructs anUnresolvedIdentifierfrom anObjectIdentifier.- See Also:
of(String...)
-
getObjectName
public String getObjectName()
-
asSummaryString
public String asSummaryString()
Returns a string that summarizes this instance for printing to a console or log.
-
-