org.apache.hadoop.hive.hbase
Class HBaseStorageHandler

java.lang.Object
  extended by org.apache.hadoop.hive.ql.metadata.DefaultStorageHandler
      extended by org.apache.hadoop.hive.hbase.HBaseStorageHandler
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, HiveMetaHook, HiveStorageHandler, HiveStoragePredicateHandler

public class HBaseStorageHandler
extends DefaultStorageHandler
implements HiveMetaHook, HiveStoragePredicateHandler

HBaseStorageHandler provides a HiveStorageHandler implementation for HBase.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.ql.metadata.HiveStoragePredicateHandler
HiveStoragePredicateHandler.DecomposedPredicate
 
Field Summary
static String DEFAULT_PREFIX
           
 
Constructor Summary
HBaseStorageHandler()
           
 
Method Summary
 void commitCreateTable(Table table)
           
 void commitDropTable(Table tbl, boolean deleteData)
           
 void configureInputJobProperties(TableDesc tableDesc, Map<String,String> jobProperties)
           
 void configureJobConf(TableDesc tableDesc, org.apache.hadoop.mapred.JobConf jobConf)
           
 void configureOutputJobProperties(TableDesc tableDesc, Map<String,String> jobProperties)
           
 void configureTableJobProperties(TableDesc tableDesc, Map<String,String> jobProperties)
           
 HiveStoragePredicateHandler.DecomposedPredicate decomposePredicate(org.apache.hadoop.mapred.JobConf jobConf, Deserializer deserializer, ExprNodeDesc predicate)
           
 org.apache.hadoop.conf.Configuration getConf()
           
 Class<? extends org.apache.hadoop.mapred.InputFormat> getInputFormatClass()
           
 org.apache.hadoop.conf.Configuration getJobConf()
           
 HiveMetaHook getMetaHook()
           
 Class<? extends org.apache.hadoop.mapred.OutputFormat> getOutputFormatClass()
           
 Class<? extends SerDe> getSerDeClass()
           
 void preCreateTable(Table tbl)
           
 void preDropTable(Table table)
           
 void rollbackCreateTable(Table table)
           
 void rollbackDropTable(Table table)
           
 void setConf(org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.metadata.DefaultStorageHandler
getAuthorizationProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PREFIX

public static final String DEFAULT_PREFIX
See Also:
Constant Field Values
Constructor Detail

HBaseStorageHandler

public HBaseStorageHandler()
Method Detail

preDropTable

public void preDropTable(Table table)
                  throws MetaException
Specified by:
preDropTable in interface HiveMetaHook
Throws:
MetaException

rollbackDropTable

public void rollbackDropTable(Table table)
                       throws MetaException
Specified by:
rollbackDropTable in interface HiveMetaHook
Throws:
MetaException

commitDropTable

public void commitDropTable(Table tbl,
                            boolean deleteData)
                     throws MetaException
Specified by:
commitDropTable in interface HiveMetaHook
Throws:
MetaException

preCreateTable

public void preCreateTable(Table tbl)
                    throws MetaException
Specified by:
preCreateTable in interface HiveMetaHook
Throws:
MetaException

rollbackCreateTable

public void rollbackCreateTable(Table table)
                         throws MetaException
Specified by:
rollbackCreateTable in interface HiveMetaHook
Throws:
MetaException

commitCreateTable

public void commitCreateTable(Table table)
                       throws MetaException
Specified by:
commitCreateTable in interface HiveMetaHook
Throws:
MetaException

getConf

public org.apache.hadoop.conf.Configuration getConf()
Specified by:
getConf in interface org.apache.hadoop.conf.Configurable
Overrides:
getConf in class DefaultStorageHandler

getJobConf

public org.apache.hadoop.conf.Configuration getJobConf()

setConf

public void setConf(org.apache.hadoop.conf.Configuration conf)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable
Overrides:
setConf in class DefaultStorageHandler

getInputFormatClass

public Class<? extends org.apache.hadoop.mapred.InputFormat> getInputFormatClass()
Specified by:
getInputFormatClass in interface HiveStorageHandler
Overrides:
getInputFormatClass in class DefaultStorageHandler

getOutputFormatClass

public Class<? extends org.apache.hadoop.mapred.OutputFormat> getOutputFormatClass()
Specified by:
getOutputFormatClass in interface HiveStorageHandler
Overrides:
getOutputFormatClass in class DefaultStorageHandler

getSerDeClass

public Class<? extends SerDe> getSerDeClass()
Specified by:
getSerDeClass in interface HiveStorageHandler
Overrides:
getSerDeClass in class DefaultStorageHandler

getMetaHook

public HiveMetaHook getMetaHook()
Specified by:
getMetaHook in interface HiveStorageHandler
Overrides:
getMetaHook in class DefaultStorageHandler

configureInputJobProperties

public void configureInputJobProperties(TableDesc tableDesc,
                                        Map<String,String> jobProperties)
Specified by:
configureInputJobProperties in interface HiveStorageHandler
Overrides:
configureInputJobProperties in class DefaultStorageHandler

configureOutputJobProperties

public void configureOutputJobProperties(TableDesc tableDesc,
                                         Map<String,String> jobProperties)
Specified by:
configureOutputJobProperties in interface HiveStorageHandler
Overrides:
configureOutputJobProperties in class DefaultStorageHandler

configureTableJobProperties

public void configureTableJobProperties(TableDesc tableDesc,
                                        Map<String,String> jobProperties)
Specified by:
configureTableJobProperties in interface HiveStorageHandler
Overrides:
configureTableJobProperties in class DefaultStorageHandler

configureJobConf

public void configureJobConf(TableDesc tableDesc,
                             org.apache.hadoop.mapred.JobConf jobConf)
Specified by:
configureJobConf in interface HiveStorageHandler
Overrides:
configureJobConf in class DefaultStorageHandler

decomposePredicate

public HiveStoragePredicateHandler.DecomposedPredicate decomposePredicate(org.apache.hadoop.mapred.JobConf jobConf,
                                                                          Deserializer deserializer,
                                                                          ExprNodeDesc predicate)
Specified by:
decomposePredicate in interface HiveStoragePredicateHandler


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