org.apache.lens.storage.db
Class DBStorage

java.lang.Object
  extended by org.apache.lens.cube.metadata.AbstractCubeTable
      extended by org.apache.lens.cube.metadata.Storage
          extended by org.apache.lens.storage.db.DBStorage
All Implemented Interfaces:
Named, PartitionMetahook

public class DBStorage
extends Storage

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.
protected DBStorage(String name, Map<String,String> properties)
          Instantiates a new DB storage.
protected DBStorage(String dbUrl, String name, Map<String,String> properties)
          Instantiates a new DB storage.
  DBStorage(org.apache.hadoop.hive.ql.metadata.Table hiveTable)
          Instantiates a new DB storage.
 
Method Summary
protected  void addProperties()
           
 void commitAddPartition(StoragePartitionDesc arg0)
           
 void commitDropPartition(String arg0, List<String> arg1)
           
 String getDbUrl()
           
 void preAddPartition(StoragePartitionDesc arg0)
           
 void preDropPartition(String arg0, List<String> arg1)
           
 void rollbackAddPartition(StoragePartitionDesc arg0)
           
 void rollbackDropPartition(String arg0, List<String> arg1)
           
 
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
addColumns, addProperties, alterColumn, alterWeight, equals, getAllFieldNames, getColumns, getName, getProperties, getWeight, hashCode, removeProperty, toString, weight
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DB_URL

public static final String DB_URL
The Constant DB_URL.

See Also:
Constant Field Values
Constructor Detail

DBStorage

protected DBStorage(String dbUrl,
                    String name,
                    Map<String,String> properties)
Instantiates a new DB storage.

Parameters:
dbUrl - the db url
name - the name
properties - 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 name
properties - the properties

DBStorage

public DBStorage(org.apache.hadoop.hive.ql.metadata.Table hiveTable)
Instantiates a new DB storage.

Parameters:
hiveTable - the hive table
Method Detail

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.