public interface InputDataSetCmdArgsParser
AbstractInputDataSet
.AbstractInputDataSet
given some parameters.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 |
boolean acceptsCmdArgs(CmdArgsParser argsp, Configuration conf)
AbstractInputDataSet
given the command line arguments encapsulated by argspargsp
- an instance of CmdArgsParser
which contains the command line parametersconf
- a job configurationAbstractInputDataSet
given the command line argumentsvoid getCmdArgs(AbstractInputDataSet dataSet, java.util.Map<java.lang.String,java.lang.Object> cmdArgs)
MultiInputDataSet
), a new map can be added to cmdArgs with the key defined by CmdArgs.INPUT_LIST
dataSet
- an input data setcmdArgs
- a map which key value pairs represent command line parameters.java.lang.String getCmdOptions()
java.lang.String getInputDataSetDescription()
AbstractInputDataSet parseCmdArgs(CmdArgsParser argsp, Configuration conf)
AbstractInputDataSet
argsp
- an instance of CmdArgsParser
which contains the command line parametersconf
- a job configurationAbstractInputDataSet
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.