|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.preproc.filter.row.rowfilter.RowFilter
org.knime.base.node.preproc.filter.row.rowfilter.AttrValueRowFilter
public abstract class AttrValueRowFilter
Super class for all row filters that test an attribute value (like
StringCompareRowFilter, MissingValueRowFilter, and
RangeRowFilter).
| Constructor Summary | |
|---|---|
(package private) |
AttrValueRowFilter()
Don't use an instance created by this constructor until calling loadSettings and configure. |
protected |
AttrValueRowFilter(String colName,
boolean include)
The super class stores the class name and the include flag for all filters checking the attribute value in some way. |
| Method Summary | |
|---|---|
DataTableSpec |
configure(DataTableSpec inSpec)
Called when a new DataTableSpec is available. |
protected int |
getColIdx()
|
String |
getColName()
|
boolean |
getInclude()
|
void |
loadSettingsFrom(NodeSettingsRO cfg)
Load your internal settings from the configuration object. |
protected void |
saveSettings(NodeSettingsWO cfg)
Do not call this function - rather call RowFilter.saveSettingsTo(NodeSettingsWO). |
| Methods inherited from class org.knime.base.node.preproc.filter.row.rowfilter.RowFilter |
|---|
clone, matches, saveSettingsTo |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
AttrValueRowFilter()
protected AttrValueRowFilter(String colName,
boolean include)
colName - the name of the column to testinclude - flag indicating whether to include or exclude matching
rows| Method Detail |
|---|
public DataTableSpec configure(DataTableSpec inSpec)
throws org.knime.core.node.InvalidSettingsException
DataTableSpec is available. The filters can
grab whatever they need from that new config (e.g. a comparator), should
do some error checking (e.g. col number against number of columns) -
throw an InvalidSettingsException if settings are invalid, and
can return a new table spec according to their settings - if they can. If
a filter cannot tell how it would modify the spec, it should return null.
(Returned table specs are not used right now anyway.)
configure in class RowFilterinSpec - the new spec propagated into the row filter node. Could be
null or empty!
org.knime.core.node.InvalidSettingsException - if the settings in the row filter are
not compatible with the table spec coming in
public void loadSettingsFrom(NodeSettingsRO cfg)
throws org.knime.core.node.InvalidSettingsException
loadSettingsFrom in class RowFiltercfg - the object holding the settings to load
org.knime.core.node.InvalidSettingsException - if cfg contains
invalid/incorrect/inconsistent settingsprotected void saveSettings(NodeSettingsWO cfg)
RowFilter.saveSettingsTo(NodeSettingsWO). This is just a helper function
for RowFilter.saveSettingsTo(NodeSettingsWO). Row filters implement this
and do the work usually done in RowFilter.saveSettingsTo(NodeSettingsWO).
The passed config is prepared in a way that the factory will be able to
recreate this object from it.
saveSettings in class RowFiltercfg - object to add the current internal settings topublic String getColName()
protected int getColIdx()
public boolean getInclude()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||