public class SortLabels extends SimpleStreamFilter implements WeightedInstancesHandler, WeightedAttributesHandler
-D Turns on output of debugging information.
-R <index1,index2-index4,...> Specify list of attributes to process. (default: select all nominal attributes)
-V Inverts the matching sense of the selection.
-S <CASE|NON-CASE> Determines the type of sorting: CASE = Case-sensitive NON-CASE = Case-insensitive (default: CASE)
Modifier and Type | Class and Description |
---|---|
static class |
SortLabels.CaseInsensitiveComparator
Represents a case-insensitive comparator for two strings.
|
static class |
SortLabels.CaseSensitiveComparator
Represents a case-sensitive comparator for two strings.
|
Modifier and Type | Field and Description |
---|---|
static int |
SORT_CASEINSENSITIVE
sorts the strings case-insensitive.
|
static int |
SORT_CASESENSITIVE
sorts the strings case-sensitive.
|
static Tag[] |
TAGS_SORTTYPE
Tag allowing selection of sort type.
|
Constructor and Description |
---|
SortLabels() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
attributeIndicesTipText()
Returns the tip text for this property.
|
java.lang.String |
getAttributeIndices()
Gets the current selected attributes.
|
Capabilities |
getCapabilities()
Returns the Capabilities of this filter.
|
boolean |
getInvertSelection()
Gets whether the supplied columns are to be processed or skipped.
|
java.lang.String[] |
getOptions()
Gets the current settings of the classifier.
|
java.lang.String |
getRevision()
Returns the revision string.
|
SelectedTag |
getSortType()
Gets the sort type to be used.
|
java.lang.String |
globalInfo()
Returns a string describing this filter.
|
java.lang.String |
invertSelectionTipText()
Returns the tip text for this property.
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(java.lang.String[] args)
runs the filter with the given arguments.
|
void |
setAttributeIndices(java.lang.String value)
Set the range of attributes to process.
|
void |
setInvertSelection(boolean value)
Sets whether selected columns should be processed or skipped.
|
void |
setOptions(java.lang.String[] options)
Parses the options for this object.
|
void |
setSortType(SelectedTag type)
Sets the sort type to be used.
|
java.lang.String |
sortTypeTipText()
Returns the tip text for this property.
|
batchFinished, input
setInputFormat
batchFilterFile, debugTipText, doNotCheckCapabilitiesTipText, filterFile, getCapabilities, getCopyOfInputFormat, getDebug, getDoNotCheckCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputPeek, postExecution, preExecution, run, runFilter, setDebug, setDoNotCheckCapabilities, toString, useFilter, wekaStaticWrapper
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
makeCopy
public static final int SORT_CASESENSITIVE
public static final int SORT_CASEINSENSITIVE
public static final Tag[] TAGS_SORTTYPE
public java.lang.String globalInfo()
globalInfo
in class SimpleFilter
public java.util.Enumeration<Option> listOptions()
listOptions
in interface OptionHandler
listOptions
in class Filter
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-D Turns on output of debugging information.
-R <index1,index2-index4,...> Specify list of attributes to process. (default: select all nominal attributes)
-V Inverts the matching sense of the selection.
-S <CASE|NON-CASE> Determines the type of sorting: CASE = Case-sensitive NON-CASE = Case-insensitive (default: CASE)
setOptions
in interface OptionHandler
setOptions
in class Filter
options
- the options to usejava.lang.Exception
- if setting of options failspublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class Filter
public java.lang.String attributeIndicesTipText()
public void setAttributeIndices(java.lang.String value)
value
- the new range.public java.lang.String getAttributeIndices()
public java.lang.String invertSelectionTipText()
public void setInvertSelection(boolean value)
value
- the new invert settingpublic boolean getInvertSelection()
public java.lang.String sortTypeTipText()
public void setSortType(SelectedTag type)
type
- the type of sortingpublic SelectedTag getSortType()
public Capabilities getCapabilities()
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class Filter
Capabilities
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class Filter
public static void main(java.lang.String[] args)
args
- the commandline arguments