|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.visualization.datasource.query.QueryFilter
com.google.visualization.datasource.query.CompoundFilter
public class CompoundFilter
A compound filter. This filter is a logical aggregation of other filters. Currently, union (OR) and intersection (AND) are supported. An OR complex filter matches if any of its sub-filters match. An AND complex filter matches if all of its sub-filters match.
| Nested Class Summary | |
|---|---|
static class |
CompoundFilter.LogicalOperator
The available types of CompoundFilter. |
| Constructor Summary | |
|---|---|
CompoundFilter(CompoundFilter.LogicalOperator operator,
java.util.List<QueryFilter> subFilters)
Constructs a compound filter of the given type, with the given sub-filters. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
protected java.util.List<AggregationColumn> |
getAggregationColumns()
|
java.util.Set<java.lang.String> |
getAllColumnIds()
Returns all the columnIds this filter uses, in this case the union of all the results of getAllColumnIds() of all its subfilters. |
CompoundFilter.LogicalOperator |
getOperator()
Returns the logical operator associated with this CompoundFilter. |
java.util.List<ScalarFunctionColumn> |
getScalarFunctionColumns()
Returns a list of all scalarFunctionColumns this filter uses, in this case the union of all the results of getScalarFunctionColumns() of all its sub-filters. |
java.util.List<QueryFilter> |
getSubFilters()
Returns the list of sub-filters associated with this CompoundFilter. |
int |
hashCode()
|
boolean |
isMatch(DataTable table,
TableRow row)
Implements isMatch (from the QueryFilter interface) by recursively calling isMatch on each of the sub-filters, and using the compound filter type to determine the result. |
java.lang.String |
toQueryString()
Returns a string that, when parsed by the query parser, should return an identical filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompoundFilter(CompoundFilter.LogicalOperator operator,
java.util.List<QueryFilter> subFilters)
operator - The type of this compound filter.subFilters - The collection of all sub-filters of this compound filter.| Method Detail |
|---|
public boolean isMatch(DataTable table,
TableRow row)
isMatch in class QueryFiltertable - The table containing this row.row - The row to check.
public java.util.Set<java.lang.String> getAllColumnIds()
getAllColumnIds in class QueryFilterpublic java.util.List<ScalarFunctionColumn> getScalarFunctionColumns()
getScalarFunctionColumns in class QueryFilterprotected java.util.List<AggregationColumn> getAggregationColumns()
getAggregationColumns in class QueryFilterpublic java.util.List<QueryFilter> getSubFilters()
public CompoundFilter.LogicalOperator getOperator()
public java.lang.String toQueryString()
toQueryString in class QueryFilterpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||