|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.rules.RuleNodeFactory
final class RuleNodeFactory
This utility class has function to create all kinds of rule nodes.
Method Summary | |
---|---|
static RuleNode |
and(RuleNode left,
RuleNode right)
Creates a new AND node. |
static RuleNode |
eq(int leftCol,
int rightCol)
Creates a equal node, that compares the values in two columns. |
static RuleNode |
eq(int col,
Number value)
Creates a equal node, that compares the value in a column to a fixed number. |
static RuleNode |
eq(int col,
String value)
Creates a new equal node, that compares the value in a column to a fixed string. |
static RuleNode |
ge(int leftCol,
int rightCol,
DataValueComparator comp)
Creates a new greater than or equal node, that compares the values in two columns. |
static RuleNode |
ge(int col,
Number value)
Creates a new greater than or equal node, that compares the value in a column to a fixed number. |
static RuleNode |
ge(int col,
String value)
Creates a new greater than or equal node, that compares the value in a column to a fixed string. |
static RuleNode |
gt(int leftCol,
int rightCol,
DataValueComparator comp)
Creates a new greater than node, that compares the values in two columns. |
static RuleNode |
gt(int col,
Number value)
Creates a new greater than node, that compares the value in a column to a fixed number. |
static RuleNode |
gt(int col,
String value)
Creates a new greater than node, that compares the value in a column to a fixed string. |
static RuleNode |
in(int col,
List<String> list)
Returns a new in node that checks if the the value in the column is equal to at least one string value from the list. |
static RuleNode |
le(int leftCol,
int rightCol,
DataValueComparator comp)
Creates a new less than or equal node, that compares the values in two columns. |
static RuleNode |
le(int col,
Number value)
Creates a new less than or equal node, that compares the value in a column to a fixed number. |
static RuleNode |
le(int col,
String value)
Creates a new less than or equal node, that compares the value in a column to a fixed string. |
static RuleNode |
like(int col1,
int col2)
Returns a new like not that tries to match a fixed wildcard expression to the value in a column. |
static RuleNode |
like(int col,
String value)
Returns a new like not that tries to match a fixed wildcard expression to the value in a column. |
static RuleNode |
like(String value,
int col)
Returns a new like not that tries to match a wildcard expression in a column to a fixed string value. |
static RuleNode |
lt(int leftCol,
int rightCol,
DataValueComparator comp)
Creates a new less than node, that compares the values in two columns. |
static RuleNode |
lt(int col,
Number value)
Creates a new less than node, that compares the value in a column to a fixed number. |
static RuleNode |
lt(int col,
String value)
Creates a new less than node, that compares the value in a column to a fixed string. |
static RuleNode |
missing(int col)
Creates a new MISSING node. |
static RuleNode |
not(RuleNode node)
Creates a new NOT node. |
static RuleNode |
or(RuleNode left,
RuleNode right)
Creates a new OR node. |
static RuleNode |
xor(RuleNode left,
RuleNode right)
Creates a new XOR node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RuleNode and(RuleNode left, RuleNode right)
left
- the left noderight
- the right node
public static RuleNode or(RuleNode left, RuleNode right)
left
- the left noderight
- the right node
public static RuleNode xor(RuleNode left, RuleNode right)
left
- the left noderight
- the right node
public static RuleNode not(RuleNode node)
node
- the node to be negated
public static RuleNode gt(int leftCol, int rightCol, DataValueComparator comp)
leftCol
- the left column's indexrightCol
- the right column's indexcomp
- the comparator that should be used for comparing the two
columns
public static RuleNode gt(int col, Number value)
col
- the left column's indexvalue
- the fixed number on the right side
public static RuleNode gt(int col, String value)
col
- the left column's indexvalue
- the fixed string on the right side
public static RuleNode ge(int leftCol, int rightCol, DataValueComparator comp)
leftCol
- the left column's indexrightCol
- the right column's indexcomp
- the comparator that should be used for comparing the two
columns
public static RuleNode ge(int col, Number value)
col
- the left column's indexvalue
- the fixed number on the right side
public static RuleNode ge(int col, String value)
col
- the left column's indexvalue
- the fixed string on the right side
public static RuleNode lt(int leftCol, int rightCol, DataValueComparator comp)
leftCol
- the left column's indexrightCol
- the right column's indexcomp
- the comparator that should be used for comparing the two
columns
public static RuleNode lt(int col, Number value)
col
- the left column's indexvalue
- the fixed number on the right side
public static RuleNode lt(int col, String value)
col
- the left column's indexvalue
- the fixed string on the right side
public static RuleNode le(int leftCol, int rightCol, DataValueComparator comp)
leftCol
- the left column's indexrightCol
- the right column's indexcomp
- the comparator that should be used for comparing the two
columns
public static RuleNode le(int col, Number value)
col
- the left column's indexvalue
- the fixed number on the right side
public static RuleNode le(int col, String value)
col
- the left column's indexvalue
- the fixed string on the right side
public static RuleNode eq(int leftCol, int rightCol)
leftCol
- the left column's indexrightCol
- the right column's index
public static RuleNode eq(int col, Number value)
col
- the left column's indexvalue
- the fixed number on the right side
public static RuleNode eq(int col, String value)
col
- the left column's indexvalue
- the fixed string on the right side
public static RuleNode like(int col, String value)
col
- the left column's indexvalue
- a string that is interpreted as a wildcard pattern (with *
and ? as wildcards)
public static RuleNode like(String value, int col)
value
- a fixed valuecol
- the column's index whose contents are interpreted as wildcard
patterns
public static RuleNode like(int col1, int col2)
col1
- the left column's indexcol2
- the right column's index, whose value is interpreted as a
wildcard pattern (with * and ? as wildcards)
public static RuleNode in(int col, List<String> list)
col
- the left column's indexlist
- a list of strings
public static RuleNode missing(int col)
col
- the column int the row to be checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |