public class DBStorage extends Storage
Storage.LatestInfo, Storage.LatestPartColumnInfo| Modifier and Type | Field and Description | 
|---|---|
| static String | DB_URLThe Constant DB_URL. | 
LOG| Constructor and Description | 
|---|
| DBStorage(String name)Instantiates a new DB storage. | 
| DBStorage(org.apache.hadoop.hive.ql.metadata.Table hiveTable)Instantiates a new DB storage. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | commitAddPartitions(List<StoragePartitionDesc> arg0)Called after successfully adding the partition | 
| void | commitDropPartition(String arg0,
                   List<String> arg1)Called after successfully droping the partition | 
| String | getDbUrl() | 
| void | preAddPartitions(List<StoragePartitionDesc> arg0)Called before calling add partition | 
| void | preDropPartition(String arg0,
                List<String> arg1)Called before calling drop partition | 
| void | rollbackAddPartitions(List<StoragePartitionDesc> arg0)Called if add partition fails. | 
| void | rollbackDropPartition(String arg0,
                     List<String> arg1)Called if drop partition fails. | 
addPartition, addPartitions, dropPartition, getPrefix, getPrefix, getStorages, getStorageTable, getTableTypeaddProperties, alterWeight, equals, getAllFieldNames, getColumns, getName, getProperties, getWeight, hashCode, removeProperty, toString, weightpublic static final String DB_URL
public DBStorage(String name)
name - the namepublic DBStorage(org.apache.hadoop.hive.ql.metadata.Table hiveTable)
hiveTable - the hive tablepublic String getDbUrl()
public void commitAddPartitions(List<StoragePartitionDesc> arg0) throws org.apache.hadoop.hive.ql.metadata.HiveException
PartitionMetahookorg.apache.hadoop.hive.ql.metadata.HiveExceptionpublic void commitDropPartition(String arg0, List<String> arg1) throws org.apache.hadoop.hive.ql.metadata.HiveException
PartitionMetahookorg.apache.hadoop.hive.ql.metadata.HiveExceptionpublic void preAddPartitions(List<StoragePartitionDesc> arg0) throws org.apache.hadoop.hive.ql.metadata.HiveException
PartitionMetahookorg.apache.hadoop.hive.ql.metadata.HiveExceptionpublic void preDropPartition(String arg0, List<String> arg1) throws org.apache.hadoop.hive.ql.metadata.HiveException
PartitionMetahookorg.apache.hadoop.hive.ql.metadata.HiveExceptionpublic void rollbackAddPartitions(List<StoragePartitionDesc> arg0) throws org.apache.hadoop.hive.ql.metadata.HiveException
PartitionMetahookorg.apache.hadoop.hive.ql.metadata.HiveExceptionpublic void rollbackDropPartition(String arg0, List<String> arg1) throws org.apache.hadoop.hive.ql.metadata.HiveException
PartitionMetahookorg.apache.hadoop.hive.ql.metadata.HiveExceptionCopyright © 2014–2015 Apache Software Foundation. All rights reserved.