@Internal public final class ExternalCatalogTable extends Object implements CatalogTable
CatalogTable
for representing a table that is backed by some inline connector
(i.e. DataStream
or TableResult.collect()
).CatalogTable.Builder
CatalogBaseTable.TableKind
Constructor and Description |
---|
ExternalCatalogTable(Schema schema) |
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 . |
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.
|
boolean |
isPartitioned()
Check if the table is partitioned or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromProperties, getDistribution, getSnapshot, getTableKind, newBuilder, of, of, toProperties
getSchema
public ExternalCatalogTable(Schema schema)
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 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. If a CatalogTable
should not be serializable, an implementation
can simply throw a runtime exception in this method.
getOptions
in interface CatalogBaseTable
public String getComment()
CatalogBaseTable
getComment
in interface CatalogBaseTable
public CatalogBaseTable copy()
CatalogBaseTable
copy
in interface CatalogBaseTable
public Optional<String> getDescription()
CatalogBaseTable
getDescription
in interface CatalogBaseTable
public Optional<String> getDetailedDescription()
CatalogBaseTable
getDetailedDescription
in interface CatalogBaseTable
public boolean isPartitioned()
CatalogTable
isPartitioned
in interface CatalogTable
public List<String> getPartitionKeys()
CatalogTable
getPartitionKeys
in interface CatalogTable
public CatalogTable copy(Map<String,String> options)
CatalogTable
CatalogTable
with given table options options
.copy
in interface CatalogTable
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.