public class HadoopTwitterTokenToolOptions extends InOutToolOptions
Modifier and Type | Field and Description |
---|---|
static String |
ARGS_KEY
The key in which command line arguments are held for each mapper to read
the options instance
|
output
Constructor and Description |
---|
HadoopTwitterTokenToolOptions(String[] args) |
HadoopTwitterTokenToolOptions(String[] args,
String[] originalArgs,
boolean beforeMaps)
Initialise the options
|
Modifier and Type | Method and Description |
---|---|
String[] |
getArgs() |
JsonPathFilterSet |
getFilters() |
String |
getJsonPath() |
String[] |
getNonHadoopArgs() |
StatusType |
getStatusType() |
boolean |
noOutput() |
void |
output(TwitterTokenMode mode) |
void |
performPreprocessing()
If there were any preprocessing arguments, perform the preprocessing and
use the preprocessing output as the input to the rest of the process.
|
void |
prepare() |
void |
prepareCL()
prepare the tool for running (command line version)
|
USMFStatus |
readStatus(String svalue) |
<T> T |
readStatusPart(String svalue)
Read json from text and try to extract the part to the type required
|
getAllInputs, getInput, getInputFile, getOutput, isContinue, isForce, overwriteOutput, prepareMultivaluedArgument, setInput, setInputFile, setOutput
public static final String ARGS_KEY
public HadoopTwitterTokenToolOptions(String[] args, String[] originalArgs, boolean beforeMaps) throws org.kohsuke.args4j.CmdLineException
args
- the arguments after going through the hadoop tool (i.e. minus
the -D hadoop arguments)originalArgs
- the original arguments as typed into the command line (useful
for subhadoop tasks launched)beforeMaps
- whether this job is occuring before the mapsorg.kohsuke.args4j.CmdLineException
public HadoopTwitterTokenToolOptions(String[] args) throws org.kohsuke.args4j.CmdLineException
args
- Just the arguments (hadoop arguments assumed to be the same)org.kohsuke.args4j.CmdLineException
public void prepareCL()
public void prepare() throws org.kohsuke.args4j.CmdLineException
org.kohsuke.args4j.CmdLineException
public boolean noOutput()
public String getJsonPath()
public String[] getNonHadoopArgs()
public void output(TwitterTokenMode mode) throws Exception
mode
- output a completed token modeException
public void performPreprocessing() throws Exception
Exception
public JsonPathFilterSet getFilters()
public USMFStatus readStatus(String svalue) throws IOException
IOException
public <T> T readStatusPart(String svalue) throws IOException
T
- svalue
- IOException
public StatusType getStatusType()