apply(Iterable)
method to create an Iterable over a table which returns only rows matching some criteria.
| Modifier and Type | Class and Description |
|---|---|
| private class | RowFilter.
Iterable which creates a filtered view of a another row iterable. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Iterable | |
| public static Iterable | |
| public Stream | |
| public static RowFilter | |
| public abstract boolean | |
| public static RowFilter | Returns: a filter which matches table rows which match the values in the row patternMap from column names to the values to be matched. A table row will match the target if
rowPattern)Objects.equals(rowPattern.get(s), row.get(s)) for all column names in the pattern map.Creates a filter based on a row pattern. |
| public static RowFilter | Returns: a filter which matches table rows which match the value in the row patterncolumn to be matched columnPattern, Object value to be matched. A table row will match the target if
valuePattern)Objects.equals(valuePattern, row.get(columnPattern.getName())).Creates a filter based on a single value row pattern. |
| public boolean | test(Row row)
Implements java. Adaptation of this class for |
| RowFilter | back to summary |
|---|---|
| public RowFilter() | |
| apply | back to summary |
|---|---|
| public Iterable Returns an iterable which filters the given iterable based on this filter.
| |
| apply | back to summary |
|---|---|
| public static Iterable Returns an iterable which filters the given iterable based on the given rowFilter. | |
| filter | back to summary |
|---|---|
| public Stream Convenience method to apply this filter to the given iterable and return it as a Stream. | |
| invert | back to summary |
|---|---|
| public static RowFilter invert(final 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). | |
| matches | back to summary |
|---|---|
| public abstract boolean matches(Row row) Returns
| |
| matchPattern | back to summary |
|---|---|
| public static RowFilter matchPattern(final Map<String, ?> rowPattern) Creates a filter based on a row pattern.
| |
| matchPattern | back to summary |
|---|---|
| public static RowFilter matchPattern(Column columnPattern, Object valuePattern) Creates a filter based on a single value row pattern. | |
| test | back to summary |
|---|---|
| public boolean test(Row row) Implements java. Adaptation of this class for
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Iterator | iterator()
Implements java. Returns an iterator which iterates through the rows of the underlying iterable, returning only rows for which
the |
| iterable | back to summary |
|---|---|
| private final Iterable<? extends Row> iterable | |
| FilterIterable | back to summary |
|---|---|
| private FilterIterable(Iterable<? extends Row> iterable) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Returns an iterator which iterates through the rows of the underlying iterable, returning only rows for which
the
| |