public interface Filter
Modifier and Type | Method and Description |
---|---|
java.lang.Comparable |
classify(Dataset data,
int row)
Returns a classification key for the given row in the dataset.
|
Filter |
copyFilter()
Creates a copy of this filter.
|
java.lang.String |
getColumnName()
Returns the name of the column that this filter looks at
|
int |
getDistributionEstimate()
Given an evenly distributed dataset, how many different classification keys should be expected from this Filter?
For instance, a Month filter would return 12, a Day-of-week filter would return 7, while a Year filter would
simply return some guess.
|
java.lang.String |
getIconPath() |
void |
invalidateCache()
Called when the dataset being passed to classify has changed.
|
boolean |
isReverseSort() |
void |
setColumnName(java.lang.String s)
Sets the column that the filter looks at
|
void |
setIconPath(java.lang.String path) |
void |
setIsReverseSort(boolean isReverseSort) |
java.lang.Comparable classify(Dataset data, int row)
data
- row
- void invalidateCache()
int getDistributionEstimate()
Filter copyFilter()
java.lang.String getColumnName()
void setColumnName(java.lang.String s)
s
- java.lang.String getIconPath()
void setIconPath(java.lang.String path)
boolean isReverseSort()
void setIsReverseSort(boolean isReverseSort)