org.apache.lens.cube.metadata
Interface PartitionMetahook

All Known Implementing Classes:
DBStorage, HDFSStorage, Storage

public interface PartitionMetahook


Method Summary
 void commitAddPartition(StoragePartitionDesc storagePartitionDesc)
          Called after successfully adding the partition
 void commitDropPartition(String storageTableName, List<String> partVals)
          Called after successfully droping the partition
 void preAddPartition(StoragePartitionDesc storagePartitionDesc)
          Called before calling add partition
 void preDropPartition(String storageTableName, List<String> partVals)
          Called before calling drop partition
 void rollbackAddPartition(StoragePartitionDesc storagePartitionDesc)
          Called if add partition fails.
 void rollbackDropPartition(String storageTableName, List<String> partVals)
          Called if drop partition fails.
 

Method Detail

preAddPartition

void preAddPartition(StoragePartitionDesc storagePartitionDesc)
                     throws org.apache.hadoop.hive.ql.metadata.HiveException
Called before calling add partition

Parameters:
StoragePartitionDesc -
Throws:
org.apache.hadoop.hive.ql.metadata.HiveException

commitAddPartition

void commitAddPartition(StoragePartitionDesc storagePartitionDesc)
                        throws org.apache.hadoop.hive.ql.metadata.HiveException
Called after successfully adding the partition

Parameters:
StoragePartitionDesc -
Throws:
org.apache.hadoop.hive.ql.metadata.HiveException

rollbackAddPartition

void rollbackAddPartition(StoragePartitionDesc storagePartitionDesc)
                          throws org.apache.hadoop.hive.ql.metadata.HiveException
Called if add partition fails.

Parameters:
StoragePartitionDesc -
Throws:
org.apache.hadoop.hive.ql.metadata.HiveException

preDropPartition

void preDropPartition(String storageTableName,
                      List<String> partVals)
                      throws org.apache.hadoop.hive.ql.metadata.HiveException
Called before calling drop partition

Parameters:
storageTableName -
partVals -
Throws:
org.apache.hadoop.hive.ql.metadata.HiveException

commitDropPartition

void commitDropPartition(String storageTableName,
                         List<String> partVals)
                         throws org.apache.hadoop.hive.ql.metadata.HiveException
Called after successfully droping the partition

Parameters:
storageTableName -
partVals -
Throws:
org.apache.hadoop.hive.ql.metadata.HiveException

rollbackDropPartition

void rollbackDropPartition(String storageTableName,
                           List<String> partVals)
                           throws org.apache.hadoop.hive.ql.metadata.HiveException
Called if drop partition fails.

Parameters:
storageTableName -
partVals -
Throws:
org.apache.hadoop.hive.ql.metadata.HiveException


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.