@Internal public class MetastoreCommitPolicy extends Object implements PartitionCommitPolicy
If this is for file system table, the metastore is a empty implemantation. If this is for hive table, the metastore is for connecting to hive metastore.
PartitionCommitPolicy.Context
CUSTOM, METASTORE, SUCCESS_FILE
Constructor and Description |
---|
MetastoreCommitPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
commit(PartitionCommitPolicy.Context context)
Commit a partition.
|
void |
setMetastore(TableMetaStoreFactory.TableMetaStore metaStore) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validatePolicyChain
public void setMetastore(TableMetaStoreFactory.TableMetaStore metaStore)
public void commit(PartitionCommitPolicy.Context context) throws Exception
PartitionCommitPolicy
commit
in interface PartitionCommitPolicy
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.