K - the type of the input keysV - the type of the input valuespublic class SuggestService<K,V> extends BaseJob<K,V>
| Modifier and Type | Class and Description |
|---|---|
static class |
SuggestService.MVSMapper<K,V>
Maps location texts from input records to a suggested feature/layer returned by MVSuggest
|
static class |
SuggestService.SuggestServiceReducer<K,V>
Collects all the different texts associated to each feature id/layer
|
argsp, inputDataSet, jarClass, jobRegEntryPath, proxyIDS| Constructor and Description |
|---|
SuggestService() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.hadoop.mapred.JobConf conf)
Validates and adds the current parameters to the job configuration
|
java.lang.String |
getCmdOptions()
Gets a description of the arguments expected from command line.
|
java.util.Map<java.lang.String,java.lang.Object> |
getCurrentCmdArgs(org.apache.hadoop.conf.Configuration conf)
Returns the current driver properties in a map where each key-value is a name and value of a command line argument.
|
protected InputDataSetCmdArgsParserHandler |
getInputDataSetCmdParserHandler(org.apache.hadoop.conf.Configuration conf)
Gets the current instance of
InputDataSetCmdArgsParserHandler used to parse command line parameters for the input data set |
protected InputDataSetConfiguratorHandler |
getInputDataSetConfiguratorHandler(org.apache.hadoop.conf.Configuration conf)
Returns the current instance of
InputDataSetConfiguratorHandler used to configure the input data set |
MVSConfig |
getMvsConf()
Gets the MVSuggest configuration
|
static <K,V> void |
main(java.lang.String[] args) |
void |
processArgs(java.lang.String[] args, org.apache.hadoop.conf.Configuration conf)
Extracts and validates arguments from the command line
|
int |
run(java.lang.String[] args) |
void |
setMvsConf(MVSConfig mvsConf)
Sets the MVSuggest configuration
|
addJobRegistryEntry, addJobRegistryEntry, addJobRegistryEntry, configure, createJob, createJob, createJob, createJob, createJobConf, createJobConf, createJobConf, getCmdOptionsWithInputDataSets, getCmdOptionsWithInputDataSets, getCurrentCmdArgsAsString, getCurrentCmdArgsAsString, getInput, getInputDataSet, getInputFormatClass, getJarClass, getOutput, getRecordInfoProviderClass, getSpatialConfig, runJob, runJob, setInput, setInputDataSet, setInputFormatClass, setJarClass, setOutput, setRecordInfoProviderClass, setSpatialConfig, updateInputDataSetprotected InputDataSetConfiguratorHandler getInputDataSetConfiguratorHandler(org.apache.hadoop.conf.Configuration conf)
BaseJobInputDataSetConfiguratorHandler used to configure the input data setgetInputDataSetConfiguratorHandler in class BaseJob<K,V>conf - a job configurationInputDataSetConfiguratorHandlerprotected InputDataSetCmdArgsParserHandler getInputDataSetCmdParserHandler(org.apache.hadoop.conf.Configuration conf)
BaseJobInputDataSetCmdArgsParserHandler used to parse command line parameters for the input data setgetInputDataSetCmdParserHandler in class BaseJob<K,V>conf - a job configurationInputDataSetCmdArgsParserHandlerpublic void setMvsConf(MVSConfig mvsConf)
mvsConf - the MVSuggest configurationpublic MVSConfig getMvsConf()
public java.lang.String getCmdOptions()
BaseJobgetCmdOptions in class BaseJob<K,V>
public void processArgs(java.lang.String[] args,
org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
BaseJobprocessArgs in class BaseJob<K,V>args - arguments from the command lineconf - the job configurationjava.lang.Exceptionpublic java.util.Map<java.lang.String,java.lang.Object> getCurrentCmdArgs(org.apache.hadoop.conf.Configuration conf)
BaseJobgetCurrentCmdArgs in class BaseJob<K,V>conf - a job configuration
public void configure(org.apache.hadoop.mapred.JobConf conf)
throws java.lang.Exception
BaseJob
public int run(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public static <K,V> void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.