|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.hive.ql.lockmgr.TxnManagerFactory
public class TxnManagerFactory
A factory to get an instance of HiveTxnManager
. This should
always be called rather than building a transaction manager via reflection.
This factory will read the configuration file to determine which
transaction manager to instantiate. It will stash the chosen transaction
manager into the Context object, and subsequently return it from there so
that if there are multiple Hive threads running,
each will get it's appropriate transaction manager.
Method Summary | |
---|---|
HiveTxnManager |
getTxnManager(HiveConf conf)
Create a new transaction manager. |
static TxnManagerFactory |
getTxnManagerFactory()
Get the singleton instance of this factory. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TxnManagerFactory getTxnManagerFactory()
public HiveTxnManager getTxnManager(HiveConf conf) throws LockException
conf
- HiveConf object used to construct the transaction manager
LockException
- if there is an error constructing the transaction
manager.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |