@Internal public class DefaultCatalogTable extends Object implements CatalogTable
CatalogTable
.CatalogBaseTable.TableKind
Modifier | Constructor and Description |
---|---|
protected |
DefaultCatalogTable(Schema schema,
String comment,
List<String> partitionKeys,
Map<String,String> options) |
Modifier and Type | Method and Description |
---|---|
CatalogBaseTable |
copy()
Get a deep copy of the CatalogBaseTable instance.
|
CatalogTable |
copy(Map<String,String> options)
Returns a copy of this
CatalogTable with given table options options . |
boolean |
equals(Object o) |
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.
|
List<String> |
getPartitionKeys()
Get the partition keys of the table.
|
Schema |
getUnresolvedSchema()
Returns the schema of the table or view.
|
int |
hashCode() |
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
fromProperties, getTableKind, of
getSchema
public Schema getUnresolvedSchema()
CatalogBaseTable
The 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 CatalogBaseTable
ResolvedCatalogTable
,
ResolvedCatalogView
public String getComment()
CatalogBaseTable
getComment
in interface CatalogBaseTable
public boolean isPartitioned()
CatalogTable
isPartitioned
in interface CatalogTable
public List<String> getPartitionKeys()
CatalogTable
getPartitionKeys
in interface CatalogTable
public Map<String,String> getOptions()
CatalogBaseTable
In 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 CatalogBaseTable
public CatalogBaseTable copy()
CatalogBaseTable
copy
in interface CatalogBaseTable
public CatalogTable copy(Map<String,String> options)
CatalogTable
CatalogTable
with given table options options
.copy
in interface CatalogTable
public Optional<String> getDescription()
CatalogBaseTable
getDescription
in interface CatalogBaseTable
public Optional<String> getDetailedDescription()
CatalogBaseTable
getDetailedDescription
in interface CatalogBaseTable
public Map<String,String> toProperties()
CatalogTable
Compared to the pure table options in CatalogBaseTable.getOptions()
, the map includes schema,
partitioning, and other characteristics in a serialized form.
toProperties
in interface CatalogTable
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.