CatalogTable.of(Schema, String, List, Map)
or a custom implementation
instead. Don't implement against this internal class. It can lead to unintended side effects
if code checks against this class instead of the common interface.@Deprecated @Internal public class CatalogTableImpl extends AbstractCatalogTable
CatalogBaseTable.TableKind
Constructor and Description |
---|
CatalogTableImpl(TableSchema tableSchema,
List<String> partitionKeys,
Map<String,String> properties,
String comment)
Deprecated.
|
CatalogTableImpl(TableSchema tableSchema,
Map<String,String> properties,
String comment)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
CatalogBaseTable |
copy()
Deprecated.
Get a deep copy of the CatalogBaseTable instance.
|
CatalogTable |
copy(Map<String,String> options)
Deprecated.
Returns a copy of this
CatalogTable with given table options options . |
static CatalogTableImpl |
fromProperties(Map<String,String> properties)
Deprecated.
Construct a
CatalogTableImpl from complete properties that contains table schema. |
Optional<String> |
getDescription()
Deprecated.
Get a brief description of the table or view.
|
Optional<String> |
getDetailedDescription()
Deprecated.
Get a detailed description of the table or view.
|
static Map<String,String> |
removeRedundant(Map<String,String> properties,
TableSchema schema,
List<String> partitionKeys)
Deprecated.
Construct catalog table properties from
toProperties() . |
Map<String,String> |
toProperties()
Deprecated.
Serializes this instance into a map of string-based properties.
|
getComment, getOptions, getPartitionKeys, getSchema, isPartitioned
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTableKind, of
getUnresolvedSchema
public CatalogTableImpl(TableSchema tableSchema, Map<String,String> properties, String comment)
public CatalogBaseTable copy()
CatalogBaseTable
public Optional<String> getDescription()
CatalogBaseTable
public Optional<String> getDetailedDescription()
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.
public CatalogTable copy(Map<String,String> options)
CatalogTable
CatalogTable
with given table options options
.public static CatalogTableImpl fromProperties(Map<String,String> properties)
CatalogTableImpl
from complete properties that contains table schema.properties
- serialized version of a CatalogTable
that includes schema,
partition keys, and connector optionspublic static Map<String,String> removeRedundant(Map<String,String> properties, TableSchema schema, List<String> partitionKeys)
toProperties()
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.