|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.healthmarketscience.jackcess.RowFilter
public abstract class RowFilter
The RowFilter class encapsulates a filter test for a table row. This can be used by the
apply(Iterable)
method to create an Iterable over a table which returns only rows
matching some criteria.
Constructor Summary | |
---|---|
RowFilter()
|
Method Summary | |
---|---|
java.lang.Iterable<java.util.Map<java.lang.String,java.lang.Object>> |
apply(java.lang.Iterable<java.util.Map<java.lang.String,java.lang.Object>> iterable)
Returns an iterable which filters the given iterable based on this filter. |
static java.lang.Iterable<java.util.Map<java.lang.String,java.lang.Object>> |
apply(RowFilter rowFilter,
java.lang.Iterable<java.util.Map<java.lang.String,java.lang.Object>> iterable)
Returns an iterable which filters the given iterable based on the given rowFilter. |
static RowFilter |
invert(RowFilter filter)
Creates a filter which inverts the sense of the given filter (rows which are matched by the given filter will not be matched by the returned filter, and vice versa). |
abstract boolean |
matches(java.util.Map<java.lang.String,java.lang.Object> row)
Returns true if the given table row matches the Filter criteria, false
otherwise. |
static RowFilter |
matchPattern(Column columnPattern,
java.lang.Object valuePattern)
Creates a filter based on a single value row pattern. |
static RowFilter |
matchPattern(java.util.Map<java.lang.String,java.lang.Object> rowPattern)
Creates a filter based on a row pattern. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RowFilter()
Method Detail |
---|
public abstract boolean matches(java.util.Map<java.lang.String,java.lang.Object> row)
true
if the given table row matches the Filter criteria, false
otherwise.
row
- current row to test for inclusion in the filterpublic java.lang.Iterable<java.util.Map<java.lang.String,java.lang.Object>> apply(java.lang.Iterable<java.util.Map<java.lang.String,java.lang.Object>> iterable)
iterable
- row iterable to filter
public static RowFilter matchPattern(java.util.Map<java.lang.String,java.lang.Object> rowPattern)
rowPattern
- Map from column names to the values to be matched. A table row will match the
target if ObjectUtil.equals(rowPattern.get(s), row.get(s))
for all column
names in the pattern map.
public static RowFilter matchPattern(Column columnPattern, java.lang.Object valuePattern)
columnPattern
- column to be matchedvaluePattern
- value to be matched. A table row will match the target if ObjectUtil.equals(valuePattern, row.get(columnPattern.getName()))
.
public static RowFilter invert(RowFilter filter)
filter
- filter which to invert
public static java.lang.Iterable<java.util.Map<java.lang.String,java.lang.Object>> apply(RowFilter rowFilter, java.lang.Iterable<java.util.Map<java.lang.String,java.lang.Object>> iterable)
rowFilter
- the filter criteria, may be null
iterable
- row iterable to filter
null
filter was given)
|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |