|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.stats.DummyStatsPublisher
public class DummyStatsPublisher
An test implementation for StatsPublisher. The method corresponding to the configuration parameter hive.test.dummystats.publisher fail, whereas all other methods succeed
Constructor Summary | |
---|---|
DummyStatsPublisher()
|
Method Summary | |
---|---|
boolean |
closeConnection()
This method closes the connection to the temporary storage. |
boolean |
connect(org.apache.hadoop.conf.Configuration hconf)
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,
Map<String,String> stats)
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 DummyStatsPublisher()
Method Detail |
---|
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.
public boolean connect(org.apache.hadoop.conf.Configuration hconf)
StatsPublisher
connect
in interface StatsPublisher
hconf
- HiveConf that contains the connection parameters.
public boolean publishStat(String fileID, Map<String,String> stats)
StatsPublisher
publishStat
in interface StatsPublisher
fileID
- : a string identification the statistics to be published by all mappers/reducers
and then gathered. The statID is unique per output partition per task, e.g.,:
the output directory name (uniq per FileSinkOperator) +
the partition specs (only for dynamic partitions) +
taskID (last component of task file)stats
- : a map containing key-value pairs, where key is a string representing the statistic
to be published,
and value is a string representing the value for the given statistic
public boolean closeConnection()
StatsPublisher
closeConnection
in interface StatsPublisher
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |