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
|
Constructor and Description |
---|
SuggestService() |
Modifier and Type | Method and Description |
---|---|
void |
configure(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(Configuration conf)
Returns the current driver properties in a map where each key-value is a name and value of a command line argument.
|
MVSConfig |
getMvsConf()
Gets the MVSuggest configuration
|
static <K,V> void |
main(java.lang.String[] args) |
void |
processArgs(java.lang.String[] args, Configuration conf)
Extracts and validates arguments from the command line
|
int |
run(java.lang.String[] args) |
void |
setMvsConf(MVSConfig mvsConf)
Sets the MVSuggest configuration
|
getCmdOptionsWithInputDataSets, getCurrentCmdArgsAsString, getInput, getInputDataSet, getInputFormatClass, getJarClass, getOutput, getRecordInfoProviderClass, getSpatialConfig, setInput, setInputDataSet, setInputFormatClass, setJarClass, setOutput, setRecordInfoProviderClass, setSpatialConfig
public void configure(JobConf conf) throws java.lang.Exception
BaseJob
public java.lang.String getCmdOptions()
BaseJob
getCmdOptions
in class BaseJob<K,V>
public java.util.Map<java.lang.String,java.lang.Object> getCurrentCmdArgs(Configuration conf)
BaseJob
getCurrentCmdArgs
in class BaseJob<K,V>
conf
- a job configurationpublic MVSConfig getMvsConf()
public static <K,V> void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void processArgs(java.lang.String[] args, Configuration conf) throws java.lang.Exception
BaseJob
processArgs
in class BaseJob<K,V>
args
- arguments from the command lineconf
- the job configurationjava.lang.Exception
public int run(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void setMvsConf(MVSConfig mvsConf)
mvsConf
- the MVSuggest configurationCopyright © 2017 Oracle and/or its affiliates. All Rights Reserved.