public abstract class AbstractTwitterPreprocessingToolOptions extends InOutToolOptions
Modifier and Type | Field and Description |
---|---|
List<TwitterPreprocessingMode<?>> |
modeOptionsOp
The preprocessing to perform
|
StatusType |
outputStatusType
the status type to output
|
List<TwitterPreprocessingPredicate> |
postFilterOptionsOp
the postfiltering to perform
|
List<TwitterPreprocessingPredicate> |
preFilterOptionsOp
The prefiltering to perform
|
StatusType |
statusType
the status type to take as input
|
output
Constructor and Description |
---|
AbstractTwitterPreprocessingToolOptions(String[] args) |
AbstractTwitterPreprocessingToolOptions(String[] args,
boolean prepare) |
Modifier and Type | Method and Description |
---|---|
GeneralJSON |
convertToOutputFormat(USMFStatus twitterStatus)
Provides the functionality to convert to the required output format as
specified by -ot
|
String |
getEncoding() |
StatusType |
getInputClass() |
StatusType |
getOutputClass() |
long |
getTimeBeforeSkip() |
TwitterOutputMode |
ouputMode() |
boolean |
postProcessesSkip(USMFStatus twitterStatus)
Check the internal postprocessing filters and say whether a given status
should be skipped
|
void |
prepare()
prepare the tool for running
|
boolean |
preProcessesSkip(USMFStatus twitterStatus)
Check the internal preprocessing filters and say whether a given status
should be skipped
|
List<TwitterPreprocessingMode<?>> |
preprocessingMode() |
void |
progress(String string) |
abstract boolean |
validate() |
boolean |
veryLoud() |
getAllInputs, getInput, getInputFile, getOutput, isContinue, isForce, overwriteOutput, prepareMultivaluedArgument, setInput, setInputFile, setOutput
public List<TwitterPreprocessingMode<?>> modeOptionsOp
public List<TwitterPreprocessingPredicate> preFilterOptionsOp
public List<TwitterPreprocessingPredicate> postFilterOptionsOp
public StatusType statusType
public StatusType outputStatusType
public AbstractTwitterPreprocessingToolOptions(String[] args, boolean prepare) throws org.kohsuke.args4j.CmdLineException
args
- the arguments, prepared using the prepare methodprepare
- whether prepare should be called now or laterorg.kohsuke.args4j.CmdLineException
public AbstractTwitterPreprocessingToolOptions(String[] args) throws org.kohsuke.args4j.CmdLineException
args
- the arguments, prepared using the prepare methodorg.kohsuke.args4j.CmdLineException
public void prepare() throws org.kohsuke.args4j.CmdLineException
org.kohsuke.args4j.CmdLineException
public List<TwitterPreprocessingMode<?>> preprocessingMode() throws Exception
Exception
public TwitterOutputMode ouputMode()
public abstract boolean validate() throws org.kohsuke.args4j.CmdLineException
org.kohsuke.args4j.CmdLineException
public void progress(String string)
string
- print progress if we are not being quietpublic boolean veryLoud()
public long getTimeBeforeSkip()
public String getEncoding()
public boolean preProcessesSkip(USMFStatus twitterStatus)
twitterStatus
- public boolean postProcessesSkip(USMFStatus twitterStatus)
twitterStatus
- public GeneralJSON convertToOutputFormat(USMFStatus twitterStatus)
twitterStatus
- public StatusType getInputClass()
public StatusType getOutputClass()