org.apache.lens.storage.db
Class DBStorage
java.lang.Object
org.apache.lens.cube.metadata.AbstractCubeTable
org.apache.lens.cube.metadata.Storage
org.apache.lens.storage.db.DBStorage
- All Implemented Interfaces:
- Named, PartitionMetahook
public class DBStorage
- extends Storage
The Class DBStorage.
| Methods inherited from class org.apache.lens.cube.metadata.AbstractCubeTable |
addColumns, addProperties, alterColumn, alterWeight, equals, getAllFieldNames, getColumns, getName, getProperties, getWeight, hashCode, removeProperty, toString, weight |
DB_URL
public static final String DB_URL
- The Constant DB_URL.
- See Also:
- Constant Field Values
DBStorage
protected DBStorage(String dbUrl,
String name,
Map<String,String> properties)
- Instantiates a new DB storage.
- Parameters:
dbUrl - the db urlname - the nameproperties - the properties
DBStorage
public DBStorage(String name)
- Instantiates a new DB storage.
- Parameters:
name - the name
DBStorage
protected DBStorage(String name,
Map<String,String> properties)
- Instantiates a new DB storage.
- Parameters:
name - the nameproperties - the properties
DBStorage
public DBStorage(org.apache.hadoop.hive.ql.metadata.Table hiveTable)
- Instantiates a new DB storage.
- Parameters:
hiveTable - the hive table
addProperties
protected void addProperties()
- Overrides:
addProperties in class Storage
getDbUrl
public String getDbUrl()
commitAddPartition
public void commitAddPartition(StoragePartitionDesc arg0)
throws org.apache.hadoop.hive.ql.metadata.HiveException
- Throws:
org.apache.hadoop.hive.ql.metadata.HiveException
commitDropPartition
public void commitDropPartition(String arg0,
List<String> arg1)
throws org.apache.hadoop.hive.ql.metadata.HiveException
- Throws:
org.apache.hadoop.hive.ql.metadata.HiveException
preAddPartition
public void preAddPartition(StoragePartitionDesc arg0)
throws org.apache.hadoop.hive.ql.metadata.HiveException
- Throws:
org.apache.hadoop.hive.ql.metadata.HiveException
preDropPartition
public void preDropPartition(String arg0,
List<String> arg1)
throws org.apache.hadoop.hive.ql.metadata.HiveException
- Throws:
org.apache.hadoop.hive.ql.metadata.HiveException
rollbackAddPartition
public void rollbackAddPartition(StoragePartitionDesc arg0)
throws org.apache.hadoop.hive.ql.metadata.HiveException
- Throws:
org.apache.hadoop.hive.ql.metadata.HiveException
rollbackDropPartition
public void rollbackDropPartition(String arg0,
List<String> arg1)
throws org.apache.hadoop.hive.ql.metadata.HiveException
- Throws:
org.apache.hadoop.hive.ql.metadata.HiveException
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.