|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.data.filter.row.DoubleCellFilterRowGenerator
public class DoubleCellFilterRowGenerator
This class implements the
FilterRowGenerator interface for
DoubleCell objects and checks if they
are within a certain interval.
It provides two options, one uses a single border the other one a two border
interval. In general, each type allows to define if the border is included or
excluded, see IN and OUT. Furthermore, it is
possible to define if the range on the LEFT and/or on the
RIGHT is included to the interval. E.g., LEFT+IN,
LEFT+OUT, RIGHT+IN, RIGHT+OUT.
| Field Summary | |
|---|---|
static int |
IN
Values on the border are included. |
static int |
LEFT
Use interval on the left of the border. |
static int |
OUT
Values on the border are excluded. |
static int |
RIGHT
Use interval of the right of the border. |
| Constructor Summary | |
|---|---|
DoubleCellFilterRowGenerator(int columnIndex,
double doubleValue,
int mask)
Creates a new single border row filter. |
|
DoubleCellFilterRowGenerator(int columnIndex,
double doubleLeft,
int maskLeft,
double doubleRight,
int maskRight)
|
|
DoubleCellFilterRowGenerator(int columnIndex,
DoubleValue doubleCell,
int mask)
|
|
DoubleCellFilterRowGenerator(int columnIndex,
DoubleValue doubleCellLeft,
int maskLeft,
DoubleValue doubleCellRight,
int maskRight)
|
|
| Method Summary | |
|---|---|
boolean |
isIn(DataRow row)
Checks if the given row lies within the define interval borders. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int IN
public static final int OUT
public static final int LEFT
public static final int RIGHT
| Constructor Detail |
|---|
public DoubleCellFilterRowGenerator(int columnIndex,
DoubleValue doubleCell,
int mask)
columnIndex - the column's indexdoubleCell - the double cell bordermask - the interval mask
NullPointerException - if the double cell is nullDoubleCellFilterRowGenerator(int,double,int)
public DoubleCellFilterRowGenerator(int columnIndex,
double doubleValue,
int mask)
columnIndex - the column's indexdoubleValue - the double value bordermask - the interval mask
IllegalArgumentException - if the column index is negative or the
mask can not composed from IN + LEFT,
IN + RIGHT, OUT + LEFT, or
OUT + RIGHT
public DoubleCellFilterRowGenerator(int columnIndex,
DoubleValue doubleCellLeft,
int maskLeft,
DoubleValue doubleCellRight,
int maskRight)
columnIndex - the column's indexdoubleCellLeft - the left border valuemaskLeft - the left maskdoubleCellRight - the right border valuemaskRight - the right mask
NullPointerException - if one of the double cells is
nullDoubleCellFilterRowGenerator(int,double,int,double,int)
public DoubleCellFilterRowGenerator(int columnIndex,
double doubleLeft,
int maskLeft,
double doubleRight,
int maskRight)
columnIndex - the column's indexdoubleLeft - the left border valuemaskLeft - the left maskdoubleRight - the right border valuemaskRight - the right mask
IllegalArgumentException - if the column index is negative, right
and left border overlap, left or right mask can not be
composed, or the mask conflict by referring to the same
direction| Method Detail |
|---|
public boolean isIn(DataRow row)
isIn in interface FilterRowGeneratorrow - the row which should be checked for being inside the interval
true if inside the define interval
NullPointerException - if the given row is null
ClassCastException - if the row's cell is not of type
DoubleCell
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||