public class DBStorage extends Storage
Storage.LatestInfo, Storage.LatestPartColumnInfo
Modifier and Type | Field and Description |
---|---|
static String |
DB_URL
The Constant DB_URL.
|
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(s)
|
void |
commitDropPartition(String arg0,
List<String> arg1)
Called after successfully droping the partition
|
void |
commitUpdatePartition(List<org.apache.hadoop.hive.ql.metadata.Partition> partitions)
Called after successfully updating partition(s)
|
String |
getDbUrl() |
void |
preAddPartitions(List<StoragePartitionDesc> arg0)
Called before calling add partition(s)
|
void |
preDropPartition(String arg0,
List<String> arg1)
Called before calling drop partition
|
void |
preUpdatePartition(List<org.apache.hadoop.hive.ql.metadata.Partition> partitions)
Called before calling update partition(s)
|
void |
rollbackAddPartitions(List<StoragePartitionDesc> arg0)
Called if add partition fails.
|
void |
rollbackDropPartition(String arg0,
List<String> arg1)
Called if drop partition fails.
|
void |
rollbackUpdatePartition(List<org.apache.hadoop.hive.ql.metadata.Partition> partitions)
Called after failed updating partition(s)
|
addPartition, addPartitions, dropPartition, getPrefix, getPrefix, getStorages, getStorageTable, getTableType, updatePartition, updatePartitions
addProperties, alterWeight, equals, getAllFieldNames, getColumns, getName, getProperties, getWeight, hashCode, removeProperty, toString, weight
public 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
PartitionMetahook
org.apache.hadoop.hive.ql.metadata.HiveException
public void commitDropPartition(String arg0, List<String> arg1) throws org.apache.hadoop.hive.ql.metadata.HiveException
PartitionMetahook
org.apache.hadoop.hive.ql.metadata.HiveException
public void preAddPartitions(List<StoragePartitionDesc> arg0) throws org.apache.hadoop.hive.ql.metadata.HiveException
PartitionMetahook
org.apache.hadoop.hive.ql.metadata.HiveException
public void preDropPartition(String arg0, List<String> arg1) throws org.apache.hadoop.hive.ql.metadata.HiveException
PartitionMetahook
org.apache.hadoop.hive.ql.metadata.HiveException
public void rollbackAddPartitions(List<StoragePartitionDesc> arg0) throws org.apache.hadoop.hive.ql.metadata.HiveException
PartitionMetahook
org.apache.hadoop.hive.ql.metadata.HiveException
public void preUpdatePartition(List<org.apache.hadoop.hive.ql.metadata.Partition> partitions) throws org.apache.hadoop.hive.ql.metadata.HiveException
PartitionMetahook
org.apache.hadoop.hive.ql.metadata.HiveException
public void commitUpdatePartition(List<org.apache.hadoop.hive.ql.metadata.Partition> partitions) throws org.apache.hadoop.hive.ql.metadata.HiveException
PartitionMetahook
org.apache.hadoop.hive.ql.metadata.HiveException
public void rollbackUpdatePartition(List<org.apache.hadoop.hive.ql.metadata.Partition> partitions) throws org.apache.hadoop.hive.ql.metadata.HiveException
PartitionMetahook
org.apache.hadoop.hive.ql.metadata.HiveException
public void rollbackDropPartition(String arg0, List<String> arg1) throws org.apache.hadoop.hive.ql.metadata.HiveException
PartitionMetahook
org.apache.hadoop.hive.ql.metadata.HiveException
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.