org.apache.hadoop.hive.hbase
Class HBaseStatsPublisher

java.lang.Object
  extended by org.apache.hadoop.hive.hbase.HBaseStatsPublisher
All Implemented Interfaces:
StatsPublisher

public class HBaseStatsPublisher
extends Object
implements StatsPublisher

A class that implements the StatsPublisher interface through HBase.


Constructor Summary
HBaseStatsPublisher()
           
 
Method Summary
 boolean closeConnection()
           
 boolean connect(org.apache.hadoop.conf.Configuration hiveconf)
          Does the necessary HBase initializations.
 boolean init(org.apache.hadoop.conf.Configuration hiveconf)
          Does the necessary HBase initializations.
 boolean publishStat(String rowID, Map<String,String> stats)
          Writes temporary statistics into HBase;
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HBaseStatsPublisher

public HBaseStatsPublisher()
Method Detail

connect

public boolean connect(org.apache.hadoop.conf.Configuration hiveconf)
Does the necessary HBase initializations.

Specified by:
connect in interface StatsPublisher

publishStat

public boolean publishStat(String rowID,
                           Map<String,String> stats)
Writes temporary statistics into HBase;

Specified by:
publishStat in interface StatsPublisher

closeConnection

public boolean closeConnection()
Specified by:
closeConnection in interface StatsPublisher

init

public boolean init(org.apache.hadoop.conf.Configuration hiveconf)
Does the necessary HBase initializations.

Specified by:
init in interface StatsPublisher


Copyright © 2014 The Apache Software Foundation. All rights reserved.