|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.cube.metadata.AbstractCubeTable org.apache.lens.cube.metadata.Storage org.apache.lens.storage.db.DBStorage
public class DBStorage
The Class DBStorage.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.lens.cube.metadata.Storage |
---|
Storage.LatestInfo, Storage.LatestPartColumnInfo |
Field Summary | |
---|---|
static String |
DB_URL
The Constant DB_URL. |
Fields inherited from class org.apache.lens.cube.metadata.AbstractCubeTable |
---|
LOG |
Constructor Summary | |
---|---|
DBStorage(String name)
Instantiates a new DB storage. |
|
DBStorage(org.apache.hadoop.hive.ql.metadata.Table hiveTable)
Instantiates a new DB storage. |
Method Summary | |
---|---|
void |
commitAddPartition(StoragePartitionDesc arg0)
Called after successfully adding the partition |
void |
commitDropPartition(String arg0,
List<String> arg1)
Called after successfully droping the partition |
String |
getDbUrl()
|
void |
preAddPartition(StoragePartitionDesc arg0)
Called before calling add partition |
void |
preDropPartition(String arg0,
List<String> arg1)
Called before calling drop partition |
void |
rollbackAddPartition(StoragePartitionDesc arg0)
Called if add partition fails. |
void |
rollbackDropPartition(String arg0,
List<String> arg1)
Called if drop partition fails. |
Methods inherited from class org.apache.lens.cube.metadata.Storage |
---|
addPartition, dropPartition, getPrefix, getPrefix, getStorages, getStorageTable, getTableType |
Methods inherited from class org.apache.lens.cube.metadata.AbstractCubeTable |
---|
addProperties, alterWeight, equals, getAllFieldNames, getColumns, getName, getProperties, getWeight, hashCode, removeProperty, toString, weight |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DB_URL
Constructor Detail |
---|
public DBStorage(String name)
name
- the namepublic DBStorage(org.apache.hadoop.hive.ql.metadata.Table hiveTable)
hiveTable
- the hive tableMethod Detail |
---|
public String getDbUrl()
public void commitAddPartition(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 preAddPartition(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 rollbackAddPartition(StoragePartitionDesc arg0) 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |