|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.stats.jdbc.JDBCStatsPublisher
public class JDBCStatsPublisher
Constructor Summary | |
---|---|
JDBCStatsPublisher()
|
Method Summary | |
---|---|
boolean |
closeConnection()
This method closes the connection to the temporary storage. |
boolean |
connect(org.apache.hadoop.conf.Configuration hiveconf)
This method connects to the intermediate statistics database. |
boolean |
init(org.apache.hadoop.conf.Configuration hconf)
This method does the necessary one-time initializations, possibly creating the tables and database (if not exist). |
boolean |
publishStat(String fileID,
String statType,
String value)
This method publishes a given statistic into a disk storage, possibly HBase or MySQL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCStatsPublisher()
Method Detail |
---|
public boolean connect(org.apache.hadoop.conf.Configuration hiveconf)
StatsPublisher
connect
in interface StatsPublisher
hiveconf
- HiveConf that contains the connection parameters.
public boolean publishStat(String fileID, String statType, String value)
StatsPublisher
publishStat
in interface StatsPublisher
public boolean closeConnection()
StatsPublisher
closeConnection
in interface StatsPublisher
public boolean init(org.apache.hadoop.conf.Configuration hconf)
StatsPublisher
init
in interface StatsPublisher
hconf
- HiveConf that contains the configurations parameters used to connect to
intermediate stats database.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |