org.apache.hadoop.hive.ql.metadata
Interface HiveStorageHandler

All Superinterfaces:
org.apache.hadoop.conf.Configurable
All Known Implementing Classes:
DefaultStorageHandler

public interface HiveStorageHandler
extends org.apache.hadoop.conf.Configurable

HiveStorageHandler defines a pluggable interface for adding new storage handlers to Hive. A storage handler consists of a bundle of the following:

Storage handler classes are plugged in using the STORED BY 'classname' clause in CREATE TABLE.


Method Summary
 void configureTableJobProperties(TableDesc tableDesc, Map<String,String> jobProperties)
          Configures properties for a job based on the definition of the source or target table it accesses.
 Class<? extends org.apache.hadoop.mapred.InputFormat> getInputFormatClass()
           
 HiveMetaHook getMetaHook()
           
 Class<? extends org.apache.hadoop.mapred.OutputFormat> getOutputFormatClass()
           
 Class<? extends SerDe> getSerDeClass()
           
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Method Detail

getInputFormatClass

Class<? extends org.apache.hadoop.mapred.InputFormat> getInputFormatClass()
Returns:
Class providing an implementation of InputFormat

getOutputFormatClass

Class<? extends org.apache.hadoop.mapred.OutputFormat> getOutputFormatClass()
Returns:
Class providing an implementation of OutputFormat

getSerDeClass

Class<? extends SerDe> getSerDeClass()
Returns:
Class providing an implementation of SerDe

getMetaHook

HiveMetaHook getMetaHook()
Returns:
metadata hook implementation, or null if this storage handler does not need any metadata notifications

configureTableJobProperties

void configureTableJobProperties(TableDesc tableDesc,
                                 Map<String,String> jobProperties)
Configures properties for a job based on the definition of the source or target table it accesses.

Parameters:
tableDesc - descriptor for the table being accessed
jobProperties - receives properties copied or transformed from the table properties


Copyright © 2010 The Apache Software Foundation