@Internal public final class ContextResolvedTable extends Object
ResolvedSchema
, its options and its
relationship with a Catalog
, if any.
There can be 3 kinds of ContextResolvedTable
:
Catalog
and has an associated
unique ObjectIdentifier
.
CatalogManager
, has an associated
unique ObjectIdentifier
and is flagged as temporary.
ObjectIdentifier
.
The different handling of temporary and permanent tables is Catalog
and CatalogManager
instance specific, hence for these two kind of tables, an instance of this object
represents the relationship between the specific ResolvedCatalogBaseTable
instance and
the specific Catalog
/CatalogManager
instances. For example, the same ResolvedCatalogBaseTable
can be temporary for one catalog, but permanent for another one.
Modifier and Type | Method and Description |
---|---|
static ContextResolvedTable |
anonymous(org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?> resolvedTable) |
static ContextResolvedTable |
anonymous(String hint,
org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?> resolvedTable) |
ContextResolvedTable |
copy(Map<String,String> newOptions)
Copy the
ContextResolvedTable , replacing the underlying CatalogTable options. |
boolean |
equals(Object o) |
Optional<org.apache.flink.table.catalog.Catalog> |
getCatalog()
Returns empty if
isPermanent() is false. |
org.apache.flink.table.catalog.ObjectIdentifier |
getIdentifier() |
org.apache.flink.table.catalog.ResolvedSchema |
getResolvedSchema() |
<T extends org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?>> |
getResolvedTable()
Returns a fully resolved catalog object.
|
<T extends org.apache.flink.table.catalog.CatalogBaseTable> |
getTable()
Returns the original metadata object returned by the catalog.
|
int |
hashCode() |
boolean |
isAnonymous() |
boolean |
isPermanent() |
boolean |
isTemporary() |
static ContextResolvedTable |
permanent(org.apache.flink.table.catalog.ObjectIdentifier identifier,
org.apache.flink.table.catalog.Catalog catalog,
org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?> resolvedTable) |
static ContextResolvedTable |
temporary(org.apache.flink.table.catalog.ObjectIdentifier identifier,
org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?> resolvedTable) |
String |
toString() |
public static ContextResolvedTable permanent(org.apache.flink.table.catalog.ObjectIdentifier identifier, org.apache.flink.table.catalog.Catalog catalog, org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?> resolvedTable)
public static ContextResolvedTable temporary(org.apache.flink.table.catalog.ObjectIdentifier identifier, org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?> resolvedTable)
public static ContextResolvedTable anonymous(org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?> resolvedTable)
public static ContextResolvedTable anonymous(String hint, org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?> resolvedTable)
public boolean isAnonymous()
public boolean isTemporary()
public boolean isPermanent()
public org.apache.flink.table.catalog.ObjectIdentifier getIdentifier()
public Optional<org.apache.flink.table.catalog.Catalog> getCatalog()
isPermanent()
is false.public <T extends org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?>> T getResolvedTable()
public org.apache.flink.table.catalog.ResolvedSchema getResolvedSchema()
public <T extends org.apache.flink.table.catalog.CatalogBaseTable> T getTable()
public ContextResolvedTable copy(Map<String,String> newOptions)
ContextResolvedTable
, replacing the underlying CatalogTable
options.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.