public class RemoveType extends Filter implements UnsupervisedFilter, StreamableFilter, OptionHandler
-T <nominal|numeric|string|date|relational> Attribute type to delete. Valid options are "nominal", "numeric", "string", "date" and "relational". (default "string")
-V Invert matching sense (i.e. only keep specified columns)
Modifier and Type | Field and Description |
---|---|
static Tag[] |
TAGS_ATTRIBUTETYPE
Tag allowing selection of attribute type to delete
|
Constructor and Description |
---|
RemoveType() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
attributeTypeTipText()
Returns the tip text for this property
|
boolean |
batchFinished()
Signify that this batch of input to the filter is finished.
|
SelectedTag |
getAttributeType()
Gets the attribute type to be deleted by the filter.
|
Capabilities |
getCapabilities()
Returns the Capabilities of this filter.
|
boolean |
getInvertSelection()
Get whether the supplied columns are to be removed or kept
|
java.lang.String[] |
getOptions()
Gets the current settings of the filter.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
globalInfo()
Returns a string describing this filter
|
boolean |
input(Instance instance)
Input an instance for filtering.
|
java.lang.String |
invertSelectionTipText()
Returns the tip text for this property
|
boolean |
isOutputFormatDefined()
Returns whether the output format is ready to be collected
|
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(java.lang.String[] argv)
Main method for testing this class.
|
int |
numPendingOutput()
Returns the number of instances pending output
|
Instance |
output()
Output an instance after filtering and remove from the output queue.
|
Instance |
outputPeek()
Output an instance after filtering but do not remove from the
output queue.
|
void |
setAttributeType(SelectedTag type)
Sets the attribute type to be deleted by the filter.
|
boolean |
setInputFormat(Instances instanceInfo)
Sets the format of the input instances.
|
void |
setInvertSelection(boolean invert)
Set whether selected columns should be removed or kept.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
batchFilterFile, filterFile, getCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, makeCopies, makeCopy, toString, useFilter, wekaStaticWrapper
public static final Tag[] TAGS_ATTRIBUTETYPE
public Capabilities getCapabilities()
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class Filter
Capabilities
public boolean setInputFormat(Instances instanceInfo) throws java.lang.Exception
setInputFormat
in class Filter
instanceInfo
- an Instances object containing the input instance
structure (any instances contained in the object are ignored - only the
structure is required).java.lang.Exception
- if the inputFormat can't be set successfullypublic boolean input(Instance instance)
public boolean batchFinished() throws java.lang.Exception
batchFinished
in class Filter
java.lang.Exception
- if something goes wrongpublic Instance output()
public Instance outputPeek()
outputPeek
in class Filter
public int numPendingOutput()
numPendingOutput
in class Filter
public boolean isOutputFormatDefined()
isOutputFormatDefined
in class Filter
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-T <nominal|numeric|string|date|relational> Attribute type to delete. Valid options are "nominal", "numeric", "string", "date" and "relational". (default "string")
-V Invert matching sense (i.e. only keep specified columns)
setOptions
in interface OptionHandler
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
public java.lang.String globalInfo()
public java.lang.String attributeTypeTipText()
public void setAttributeType(SelectedTag type)
type
- a TAGS_ATTRIBUTETYPE of the new type the filter should deletepublic SelectedTag getAttributeType()
public java.lang.String invertSelectionTipText()
public boolean getInvertSelection()
public void setInvertSelection(boolean invert)
invert
- the new invert settingpublic java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class Filter
public static void main(java.lang.String[] argv)
argv
- should contain arguments to the filter: use -h for help