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:
- input format
- output format
- serde
- metadata hooks for keeping an external catalog in sync
with Hive's metastore
- rules for setting up the configuration properties on
map/reduce jobs which access tables stored by this handler
Storage handler classes are plugged in using the STORED BY 'classname'
clause in CREATE TABLE.
Methods inherited from interface org.apache.hadoop.conf.Configurable |
getConf, setConf |
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 accessedjobProperties
- receives properties copied or transformed
from the table properties
Copyright © 2010 The Apache Software Foundation