public class MultiInputDataSetCmdArgsParser extends java.lang.Object implements InputDataSetCmdArgsParser
InputDataSetCmdArgsParser
to parse command line arguments for input data sets of type MultiInputDataSet
InputDataSetCmdArgsParserHandler
to parse the parameters of the nested input data setsConstructor and Description |
---|
MultiInputDataSetCmdArgsParser(InputDataSetCmdArgsParserHandler parserHandler, Configuration conf)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsCmdArgs(CmdArgsParser argsp, Configuration conf)
Returns true if the implementation can create an instance of
AbstractInputDataSet given the command line arguments encapsulated by argsp |
void |
getCmdArgs(AbstractInputDataSet dataSet, java.util.Map<java.lang.String,java.lang.Object> cmdArgs)
Converts the current input data set properties to command line parameters which are added to the passed cmdArgs map.
|
java.lang.String |
getCmdOptions()
Gets a descriptive text about the parameters expected
|
java.lang.String |
getInputDataSetDescription()
Gets a description of the input data set created by the current parser implementation
|
InputDataSetCmdArgsParserHandler |
getParserHandler()
Gets the current instance of
InputDataSetCmdArgsParserHandler |
AbstractInputDataSet |
parseCmdArgs(CmdArgsParser argsp, Configuration conf)
Processes the command line arguments and creates an instance of
AbstractInputDataSet |
public MultiInputDataSetCmdArgsParser(InputDataSetCmdArgsParserHandler parserHandler, Configuration conf)
parserHandler
- an implementation of InputDataSetCmdArgsParserHandler
which is used to parse nested data setsconf
- a job configurationpublic boolean acceptsCmdArgs(CmdArgsParser argsp, Configuration conf)
InputDataSetCmdArgsParser
AbstractInputDataSet
given the command line arguments encapsulated by argspacceptsCmdArgs
in interface InputDataSetCmdArgsParser
argsp
- an instance of CmdArgsParser
which contains the command line parametersconf
- a job configurationAbstractInputDataSet
given the command line argumentspublic void getCmdArgs(AbstractInputDataSet dataSet, java.util.Map<java.lang.String,java.lang.Object> cmdArgs)
InputDataSetCmdArgsParser
MultiInputDataSet
), a new map can be added to cmdArgs with the key defined by CmdArgs.INPUT_LIST
getCmdArgs
in interface InputDataSetCmdArgsParser
dataSet
- an input data setcmdArgs
- a map which key value pairs represent command line parameters.public java.lang.String getCmdOptions()
InputDataSetCmdArgsParser
getCmdOptions
in interface InputDataSetCmdArgsParser
public java.lang.String getInputDataSetDescription()
InputDataSetCmdArgsParser
getInputDataSetDescription
in interface InputDataSetCmdArgsParser
public InputDataSetCmdArgsParserHandler getParserHandler()
InputDataSetCmdArgsParserHandler
public AbstractInputDataSet parseCmdArgs(CmdArgsParser argsp, Configuration conf)
InputDataSetCmdArgsParser
AbstractInputDataSet
parseCmdArgs
in interface InputDataSetCmdArgsParser
argsp
- an instance of CmdArgsParser
which contains the command line parametersconf
- a job configurationAbstractInputDataSet
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.