|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.filters.Filter
weka.filters.SimpleFilter
weka.filters.SimpleStreamFilter
weka.filters.MultiFilter
public class MultiFilter
Applies several filters successively. In case all supplied filters are StreamableFilters, it will act as a streamable one, too.
Valid options are:-D Turns on output of debugging information.
-F <classname [options]> A filter to apply (can be specified multiple times).
StreamableFilter,
Serialized Form| Constructor Summary | |
|---|---|
MultiFilter()
|
|
| Method Summary | |
|---|---|
boolean |
batchFinished()
Signify that this batch of input to the filter is finished. |
String |
filtersTipText()
Returns the tip text for this property |
Capabilities |
getCapabilities()
Returns the Capabilities of this filter. |
Filter |
getFilter(int index)
Gets a single filter from the set of available filters. |
Filter[] |
getFilters()
Gets the list of possible filters to choose from. |
String[] |
getOptions()
Gets the current settings of the filter. |
String |
getRevision()
Returns the revision string. |
String |
globalInfo()
Returns a string describing this filter |
boolean |
isStreamableFilter()
tests whether all the enclosed filters are streamable |
Enumeration |
listOptions()
Returns an enumeration describing the available options. |
static void |
main(String[] args)
Main method for executing this class. |
boolean |
mayRemoveInstanceAfterFirstBatchDone()
RemoveWithValues may return false from input() (thus not making an instance available immediately) even after the first batch has been completed due to matching a value that the user wants to remove. |
void |
setFilters(Filter[] filters)
Sets the list of possible filters to choose from. |
void |
setOptions(String[] options)
Parses a list of options for this object. |
| Methods inherited from class weka.filters.SimpleStreamFilter |
|---|
input |
| Methods inherited from class weka.filters.SimpleFilter |
|---|
debugTipText, getDebug, setDebug, setInputFormat |
| Methods inherited from class weka.filters.Filter |
|---|
batchFilterFile, filterFile, getCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, numPendingOutput, output, outputPeek, runFilter, toString, useFilter, wekaStaticWrapper |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultiFilter()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class SimpleFilterpublic Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class SimpleFilter
public void setOptions(String[] options)
throws Exception
-D Turns on output of debugging information.
-F <classname [options]> A filter to apply (can be specified multiple times).
setOptions in interface OptionHandlersetOptions in class SimpleFilteroptions - the list of options as an array of strings
Exception - if an option is not supportedSimpleFilter.reset()public String[] getOptions()
getOptions in interface OptionHandlergetOptions in class SimpleFilterpublic Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class FilterCapabilitiespublic void setFilters(Filter[] filters)
filters - an array of filters with all options set.reset()public Filter[] getFilters()
public String filtersTipText()
public Filter getFilter(int index)
index - the index of the filter wanted
public boolean isStreamableFilter()
public boolean batchFinished()
throws Exception
batchFinished in class SimpleStreamFilterIllegalStateException - if no input format has been set.
NullPointerException - if no input structure has been defined,
Exception - if there was a problem finishing the batch.public boolean mayRemoveInstanceAfterFirstBatchDone()
mayRemoveInstanceAfterFirstBatchDone in class Filterpublic String getRevision()
getRevision in interface RevisionHandlergetRevision in class Filterpublic static void main(String[] args)
args - should contain arguments for the filter: use -h for help
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||