public class FosterStorageHandler extends DefaultStorageHandler
| Modifier and Type | Field and Description |
|---|---|
org.apache.hadoop.conf.Configuration |
conf |
protected static String |
TEMP_DIR_NAME
The directory under which data is initially written for a non partitioned table
|
| Constructor and Description |
|---|
FosterStorageHandler(Class<? extends org.apache.hadoop.mapred.InputFormat> ifClass,
Class<? extends org.apache.hadoop.mapred.OutputFormat> ofClass,
Class<? extends AbstractSerDe> serDeClass) |
FosterStorageHandler(String ifName,
String ofName,
String serdeName) |
| Modifier and Type | Method and Description |
|---|---|
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 |
configureJobConf(TableDesc tableDesc,
org.apache.hadoop.mapred.JobConf jobConf)
Called just before submitting MapReduce job.
|
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
|
org.apache.hadoop.conf.Configuration |
getConf() |
Class<? extends org.apache.hadoop.mapred.InputFormat> |
getInputFormatClass() |
HiveMetaHook |
getMetaHook() |
Class<? extends org.apache.hadoop.mapred.OutputFormat> |
getOutputFormatClass() |
Class<? extends AbstractSerDe> |
getSerDeClass() |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
configureInputJobCredentials, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLockType, getStorageHandlerInfopublic org.apache.hadoop.conf.Configuration conf
protected static final String TEMP_DIR_NAME
public FosterStorageHandler(String ifName, String ofName, String serdeName) throws ClassNotFoundException
ClassNotFoundExceptionpublic FosterStorageHandler(Class<? extends org.apache.hadoop.mapred.InputFormat> ifClass, Class<? extends org.apache.hadoop.mapred.OutputFormat> ofClass, Class<? extends AbstractSerDe> serDeClass)
public Class<? extends org.apache.hadoop.mapred.InputFormat> getInputFormatClass()
getInputFormatClass in interface HiveStorageHandlergetInputFormatClass in class DefaultStorageHandlerInputFormatpublic Class<? extends org.apache.hadoop.mapred.OutputFormat> getOutputFormatClass()
getOutputFormatClass in interface HiveStorageHandlergetOutputFormatClass in class DefaultStorageHandlerOutputFormatpublic Class<? extends AbstractSerDe> getSerDeClass()
getSerDeClass in interface HiveStorageHandlergetSerDeClass in class DefaultStorageHandlerAbstractSerDepublic HiveMetaHook getMetaHook()
getMetaHook in interface HiveStorageHandlergetMetaHook in class DefaultStorageHandlerpublic void configureJobConf(TableDesc tableDesc, org.apache.hadoop.mapred.JobConf jobConf)
HiveStorageHandlerconfigureJobConf in interface HiveStorageHandlerconfigureJobConf in class DefaultStorageHandlertableDesc - descriptor for the table being accessedjobConf - jobConf for MapReduce jobpublic void configureInputJobProperties(TableDesc tableDesc, Map<String,String> jobProperties)
HiveStorageHandlerconfigureInputJobProperties in interface HiveStorageHandlerconfigureInputJobProperties in class DefaultStorageHandlertableDesc - descriptor for the table being accessedjobProperties - receives properties copied or transformed
from the table propertiespublic void configureOutputJobProperties(TableDesc tableDesc, Map<String,String> jobProperties)
HiveStorageHandlerconfigureOutputJobProperties in interface HiveStorageHandlerconfigureOutputJobProperties in class DefaultStorageHandlertableDesc - descriptor for the table being accessedjobProperties - receives properties copied or transformed
from the table propertiespublic void configureTableJobProperties(TableDesc tableDesc, Map<String,String> jobProperties)
HiveStorageHandlerconfigureTableJobProperties in interface HiveStorageHandlerconfigureTableJobProperties in class DefaultStorageHandlertableDesc - descriptor for the table being accessedjobProperties - receives properties copied or transformed
from the table propertiespublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.ConfigurablegetConf in class DefaultStorageHandlerpublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.ConfigurablesetConf in class DefaultStorageHandlerpublic HiveAuthorizationProvider getAuthorizationProvider() throws HiveException
HiveStorageHandlergetAuthorizationProvider in interface HiveStorageHandlergetAuthorizationProvider in class DefaultStorageHandlerHiveExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.