org.elasticsearch.hadoop.hive
Class ESStorageHandler

java.lang.Object
  extended by org.apache.hadoop.hive.ql.metadata.DefaultStorageHandler
      extended by org.elasticsearch.hadoop.hive.ESStorageHandler
All Implemented Interfaces:
Configurable, HiveStorageHandler

public class ESStorageHandler
extends DefaultStorageHandler

Hive storage for writing data into an ElasticSearch index. The ElasticSearch host/port can be specified through Hadoop properties (see package description) or passed to ESStorageHandler() through Hive TBLPROPERTIES


Constructor Summary
ESStorageHandler()
           
 
Method Summary
 void configureInputJobProperties(TableDesc tableDesc, Map<String,String> jobProperties)
           
 void configureOutputJobProperties(TableDesc tableDesc, Map<String,String> jobProperties)
           
 void configureTableJobProperties(TableDesc tableDesc, Map<String,String> jobProperties)
          Deprecated. 
 Class<? extends InputFormat> getInputFormatClass()
           
 HiveMetaHook getMetaHook()
           
 Class<? extends OutputFormat> getOutputFormatClass()
           
 Class<? extends SerDe> getSerDeClass()
           
 
Methods inherited from class org.apache.hadoop.hive.ql.metadata.DefaultStorageHandler
getAuthorizationProvider, getConf, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESStorageHandler

public ESStorageHandler()
Method Detail

getInputFormatClass

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

getOutputFormatClass

public Class<? extends 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

@Deprecated
public void configureTableJobProperties(TableDesc tableDesc,
                                                   Map<String,String> jobProperties)
Deprecated. 

Specified by:
configureTableJobProperties in interface HiveStorageHandler
Overrides:
configureTableJobProperties in class DefaultStorageHandler