|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.factual.driver.FilterGroup
public class FilterGroup
Represents a group of Filters as one Filter.
| Constructor Summary | |
|---|---|
FilterGroup(Filter... filters)
Constructor. |
|
FilterGroup(List<Filter> filters)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(Filter filter)
|
FilterGroup |
asOR()
Sets this FilterGroup's logic to be OR. |
FilterGroup |
op(String op)
Sets this FilterGroup's logic, e.g., "$or". |
String |
toJsonStr()
Produces JSON representation for this FilterGroup |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilterGroup(List<Filter> filters)
public FilterGroup(Filter... filters)
| Method Detail |
|---|
public FilterGroup op(String op)
public FilterGroup asOR()
public void add(Filter filter)
public String toJsonStr()
For example:
{"$and":[{"first_name":{"$eq":"Bradley"}},{"region":{"$eq":"CA"}},{"locality":{"$eq":"Los Angeles"}}]}
toJsonStr in interface Filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||