The Filter class creates a filter condition on a cross tab dimension level. The condition is expressed as value1 operator value2. The values can either be a single value, or an array of values, depending on the operator. For example, IN can be expressed as value1 IN value2 value3 ... valueN.
String. The operator can be any operator. Table 15‑8 lists the valid filter operators and the number of arguments to pass to the constructor or setValues( ).
Table 15‑8 Filter operators
Operator
Description
Number of arguments
BETWEEN
Between an inclusive range
2
BOTTOM_N
Matches the bottom n values
1
BOTTOM_PERCENT
Matches the bottom percent of the values
1
EQ
Equal
1
FALSE
Matches false Boolean values
0
GREATER_THAN
Greater than
1
GREATER_THAN_OR_EQUAL
Greater than or equal
1
IN
Matches any value in a set of values
1+
LESS_THAN
Less than
1
LESS_THAN_OR_EQUAL
Less than or equal
1
LIKE
Search for a pattern
1
MATCH
Equal
1
NOT_BETWEEN
Not between an inclusive range
2
NOT_EQ
Not equal
1
NOT_IN
Does not match any value in a set of values
1+
NOT_LIKE
Searches for values that do not match a pattern
1
NOT_MATCH
Not equal
1
NOT_NULL
Is not null
0
NULL
Is null
0
TOP_N
Matches the top n values
1
TOP_PERCENT
Matches the top percent of the values
1
TRUE
Matches true Boolean values
0
value
String. The value to compare to the column value.
value1
String. The first value to compare to the column value for the BETWEEN or NOT_BETWEEN operators.
value2
String. The second value to compare to the column value for the BETWEEN or NOT_BETWEEN operators.
values
Array of strings. The values to compare to the column value for the IN and NOT_IN operators.