public static interface TableMetaStoreFactory.TableMetaStore extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
createOrAlterPartition(LinkedHashMap<String,String> partitionSpec,
Path partitionPath)
After data has been inserted into the partition path, the partition may need to be
created (if doesn't exists) or updated.
|
default void |
finishWritingTable(Path tablePath)
After data has been inserted into table, some follow-up works related to metastore may
need be done like report statistic to metastore.
|
Path |
getLocationPath()
Deprecated.
|
Optional<Path> |
getPartition(LinkedHashMap<String,String> partitionSpec)
Get partition location path for this partition spec.
|
@Deprecated Path getLocationPath()
Optional<Path> getPartition(LinkedHashMap<String,String> partitionSpec) throws Exception
Catalog.getPartition(org.apache.flink.table.catalog.ObjectPath, org.apache.flink.table.catalog.CatalogPartitionSpec)
.partitionSpec
- partition spec should be a full spec, must be in the same order as
the partition keys of the table.Exception
void createOrAlterPartition(LinkedHashMap<String,String> partitionSpec, Path partitionPath) throws Exception
partitionSpec
- the full spec of the target partitionpartitionPath
- partition location pathException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.