public class FileInputDataSetCmdArgsParser extends java.lang.Object implements InputDataSetCmdArgsParser
InputDataSetCmdArgsParser to parse command line arguments for input data sets of type FileInputDataSet| Constructor and Description |
|---|
FileInputDataSetCmdArgsParser() |
| 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
|
AbstractInputDataSet |
parseCmdArgs(CmdArgsParser argsp, Configuration conf)
Processes the command line arguments and creates an instance of
AbstractInputDataSet |
public boolean acceptsCmdArgs(CmdArgsParser argsp, Configuration conf)
InputDataSetCmdArgsParserAbstractInputDataSet given the command line arguments encapsulated by argspacceptsCmdArgs in interface InputDataSetCmdArgsParserargsp - 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)
InputDataSetCmdArgsParserMultiInputDataSet), a new map can be added to cmdArgs with the key defined by CmdArgs.INPUT_LISTgetCmdArgs in interface InputDataSetCmdArgsParserdataSet - an input data setcmdArgs - a map which key value pairs represent command line parameters.public java.lang.String getCmdOptions()
InputDataSetCmdArgsParsergetCmdOptions in interface InputDataSetCmdArgsParserpublic java.lang.String getInputDataSetDescription()
InputDataSetCmdArgsParsergetInputDataSetDescription in interface InputDataSetCmdArgsParserpublic AbstractInputDataSet parseCmdArgs(CmdArgsParser argsp, Configuration conf)
InputDataSetCmdArgsParserAbstractInputDataSetparseCmdArgs in interface InputDataSetCmdArgsParserargsp - an instance of CmdArgsParser which contains the command line parametersconf - a job configurationAbstractInputDataSetCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.