This project has retired. For details please refer to its Attic page.
PartitionMetahook (Lens 2.0.1-beta-incubating API)

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.