|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.ql.metadata.DefaultStorageHandler
public class DefaultStorageHandler
DefaultStorageHandler is an implementation of HiveStorageHandler
which supplies the standard defaults for all options. This can be useful
either as the base class for custom storage handlers, or as a mock in tests
(providing something which appears to be a non-native table with respect to
metadata even though its behavior is otherwise identical to a native table).
| Constructor Summary | |
|---|---|
DefaultStorageHandler()
|
|
| Method Summary | |
|---|---|
void |
configureInputJobProperties(TableDesc tableDesc,
Map<String,String> jobProperties)
This method is called to allow the StorageHandlers the chance to populate the JobContext.getConfiguration() with properties that maybe be needed by the handler's bundled artifacts (ie InputFormat, SerDe, etc). |
void |
configureOutputJobProperties(TableDesc tableDesc,
Map<String,String> jobProperties)
This method is called to allow the StorageHandlers the chance to populate the JobContext.getConfiguration() with properties that maybe be needed by the handler's bundled artifacts (ie InputFormat, SerDe, etc). |
void |
configureTableJobProperties(TableDesc tableDesc,
Map<String,String> jobProperties)
Deprecated use configureInputJobProperties/configureOutputJobProperties methods instead. |
HiveAuthorizationProvider |
getAuthorizationProvider()
Returns the implementation specific authorization provider |
Configuration |
getConf()
|
Class<? extends InputFormat> |
getInputFormatClass()
|
HiveMetaHook |
getMetaHook()
|
Class<? extends OutputFormat> |
getOutputFormatClass()
|
Class<? extends SerDe> |
getSerDeClass()
|
void |
setConf(Configuration conf)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultStorageHandler()
| Method Detail |
|---|
public Class<? extends InputFormat> getInputFormatClass()
getInputFormatClass in interface HiveStorageHandlerInputFormatpublic Class<? extends OutputFormat> getOutputFormatClass()
getOutputFormatClass in interface HiveStorageHandlerOutputFormatpublic Class<? extends SerDe> getSerDeClass()
getSerDeClass in interface HiveStorageHandlerSerDepublic HiveMetaHook getMetaHook()
getMetaHook in interface HiveStorageHandler
public HiveAuthorizationProvider getAuthorizationProvider()
throws HiveException
HiveStorageHandler
getAuthorizationProvider in interface HiveStorageHandlerHiveException
public void configureInputJobProperties(TableDesc tableDesc,
Map<String,String> jobProperties)
HiveStorageHandler
configureInputJobProperties in interface HiveStorageHandlertableDesc - descriptor for the table being accessedjobProperties - receives properties copied or transformed
from the table properties
public void configureOutputJobProperties(TableDesc tableDesc,
Map<String,String> jobProperties)
HiveStorageHandler
configureOutputJobProperties in interface HiveStorageHandlertableDesc - descriptor for the table being accessedjobProperties - receives properties copied or transformed
from the table properties
public void configureTableJobProperties(TableDesc tableDesc,
Map<String,String> jobProperties)
HiveStorageHandler
configureTableJobProperties in interface HiveStorageHandlertableDesc - descriptor for the table being accessedjobProperties - receives properties copied or transformed
from the table propertiespublic Configuration getConf()
public void setConf(Configuration conf)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||