@PublicEvolving public interface CatalogTable extends CatalogBaseTable
Catalog.
It contains all characteristics that can be expressed in a SQL CREATE TABLE statement.
The framework will resolve instances of this interface to a ResolvedCatalogTable before
passing it to a DynamicTableFactory for creating a connector to an external system.
A catalog implementer can either use of(Schema, String, List, Map) for a basic
implementation of this interface or create a custom class that allows passing catalog-specific
objects all the way down to the connector creation (if necessary).
CatalogBaseTable.TableKind| 限定符和类型 | 方法和说明 |
|---|---|
CatalogTable |
copy(Map<String,String> options)
Returns a copy of this
CatalogTable with given table options options. |
static CatalogTable |
fromProperties(Map<String,String> properties)
Creates an instance of
CatalogTable from a map of string properties that were
previously created with ResolvedCatalogTable.toProperties(). |
List<String> |
getPartitionKeys()
Get the partition keys of the table.
|
default CatalogBaseTable.TableKind |
getTableKind()
The kind of table this
CatalogBaseTable describes. |
boolean |
isPartitioned()
Check if the table is partitioned or not.
|
static CatalogTable |
of(Schema schema,
String comment,
List<String> partitionKeys,
Map<String,String> options)
Creates a basic implementation of this interface.
|
default Map<String,String> |
toProperties()
已过时。
Only a
ResolvedCatalogTable is serializable to properties. |
copy, getComment, getDescription, getDetailedDescription, getOptions, getSchema, getUnresolvedSchemastatic CatalogTable of(Schema schema, @Nullable String comment, List<String> partitionKeys, Map<String,String> options)
The signature is similar to a SQL CREATE TABLE statement.
schema - unresolved schemacomment - optional commentpartitionKeys - list of partition keys or an empty list if not partitionedoptions - options to configure the connectorstatic CatalogTable fromProperties(Map<String,String> properties)
CatalogTable from a map of string properties that were
previously created with ResolvedCatalogTable.toProperties().properties - serialized version of a CatalogTable that includes schema,
partition keys, and connector optionsdefault CatalogBaseTable.TableKind getTableKind()
CatalogBaseTableCatalogBaseTable describes.getTableKind 在接口中 CatalogBaseTableboolean isPartitioned()
List<String> getPartitionKeys()
CatalogTable copy(Map<String,String> options)
CatalogTable with given table options options.@Deprecated default Map<String,String> toProperties()
ResolvedCatalogTable is serializable to properties.Compared to the pure table options in CatalogBaseTable.getOptions(), the map includes schema,
partitioning, and other characteristics in a serialized form.
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.