@PublicEvolving public final class ResolvedCatalogTable extends Object implements ResolvedCatalogBaseTable<CatalogTable>, CatalogTable
CatalogTable that is backed by the original metadata coming from the Catalog but resolved by the framework.
Note: Compared to CatalogTable, instances of this class are serializable into a map of
string properties.
CatalogBaseTable.TableKind| Constructor and Description |
|---|
ResolvedCatalogTable(CatalogTable origin,
ResolvedSchema resolvedSchema) |
| Modifier and Type | Method and Description |
|---|---|
CatalogBaseTable |
copy()
Get a deep copy of the CatalogBaseTable instance.
|
ResolvedCatalogTable |
copy(Map<String,String> options)
Returns a copy of this
CatalogTable with given table options options. |
String |
getComment()
Get comment of the table or view.
|
Optional<String> |
getDescription()
Get a brief description of the table or view.
|
Optional<String> |
getDetailedDescription()
Get a detailed description of the table or view.
|
Map<String,String> |
getOptions()
Returns a map of string-based options.
|
CatalogTable |
getOrigin()
Returns the original, unresolved metadata object from the
Catalog. |
List<String> |
getPartitionKeys()
Get the partition keys of the table.
|
ResolvedSchema |
getResolvedSchema()
Returns a fully resolved and validated
ResolvedSchema. |
Schema |
getUnresolvedSchema()
Returns the schema of the table or view.
|
boolean |
isPartitioned()
Check if the table is partitioned or not.
|
Map<String,String> |
toProperties()
Serializes this instance into a map of string-based properties.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSchemafromProperties, getTableKind, ofpublic ResolvedCatalogTable(CatalogTable origin, ResolvedSchema resolvedSchema)
public CatalogTable getOrigin()
ResolvedCatalogBaseTableCatalog.
This method might be useful if catalog-specific object instances should be directly forwarded from the catalog to a factory.
getOrigin in interface ResolvedCatalogBaseTable<CatalogTable>public ResolvedSchema getResolvedSchema()
ResolvedCatalogBaseTableResolvedSchema.
Connectors can configure themselves by accessing ResolvedSchema.getPrimaryKey()
and ResolvedSchema.toPhysicalRowDataType().
getResolvedSchema in interface ResolvedCatalogBaseTable<CatalogTable>public Map<String,String> toProperties()
CatalogTableCompared to the pure table options in CatalogBaseTable.getOptions(), the map includes schema,
partitioning, and other characteristics in a serialized form.
toProperties in interface CatalogTablepublic Map<String,String> getOptions()
CatalogBaseTableIn case of CatalogTable, these options may determine the kind of connector and its
configuration for accessing the data in the external system. See DynamicTableFactory
for more information.
getOptions in interface CatalogBaseTablepublic Schema getUnresolvedSchema()
CatalogBaseTableThe schema can reference objects from other catalogs and will be resolved and validated by the framework when accessing the table or view.
getUnresolvedSchema in interface CatalogBaseTableResolvedCatalogTable,
ResolvedCatalogViewpublic String getComment()
CatalogBaseTablegetComment in interface CatalogBaseTablepublic CatalogBaseTable copy()
CatalogBaseTablecopy in interface CatalogBaseTablepublic Optional<String> getDescription()
CatalogBaseTablegetDescription in interface CatalogBaseTablepublic Optional<String> getDetailedDescription()
CatalogBaseTablegetDetailedDescription in interface CatalogBaseTablepublic boolean isPartitioned()
CatalogTableisPartitioned in interface CatalogTablepublic List<String> getPartitionKeys()
CatalogTablegetPartitionKeys in interface CatalogTablepublic ResolvedCatalogTable copy(Map<String,String> options)
CatalogTableCatalogTable with given table options options.copy in interface CatalogTableCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.