Interface TableMetaStoreFactory.TableMetaStore
- All Superinterfaces:
AutoCloseable,Closeable
- Enclosing interface:
- TableMetaStoreFactory
Meta store to manage the location paths of this table and its partitions.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateOrAlterPartition(LinkedHashMap<String, String> partitionSpec, org.apache.flink.core.fs.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 voidfinishWritingTable(org.apache.flink.core.fs.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.org.apache.flink.core.fs.PathDeprecated.Optional<org.apache.flink.core.fs.Path>getPartition(LinkedHashMap<String, String> partitionSpec) Get partition location path for this partition spec.
-
Method Details
-
getLocationPath
Deprecated.Get base location path of this table. -
getPartition
Optional<org.apache.flink.core.fs.Path> getPartition(LinkedHashMap<String, String> partitionSpec) throws ExceptionGet partition location path for this partition spec. SeeCatalog.getPartition(org.apache.flink.table.catalog.ObjectPath, org.apache.flink.table.catalog.CatalogPartitionSpec).- Parameters:
partitionSpec- partition spec should be a full spec, must be in the same order as the partition keys of the table.- Returns:
- empty if table has no this partition, some if table already has partition data.
- Throws:
Exception
-
createOrAlterPartition
void createOrAlterPartition(LinkedHashMap<String, String> partitionSpec, org.apache.flink.core.fs.Path partitionPath) throws ExceptionAfter data has been inserted into the partition path, the partition may need to be created (if doesn't exists) or updated.- Parameters:
partitionSpec- the full spec of the target partitionpartitionPath- partition location path- Throws:
Exception
-
finishWritingTable
After data has been inserted into table, some follow-up works related to metastore may need be done like report statistic to metastore.- Throws:
Exception
-