public class PropertiesViewFilter extends Object implements QueryFilter
| Modifier and Type | Field and Description |
|---|---|
protected QueryFilter |
next |
protected Set |
viewFilter |
QUERY_DELIMETER| Constructor and Description |
|---|
PropertiesViewFilter(QueryFilter next)
Creates a filter that will select the properties of a map object to view
|
PropertiesViewFilter(Set viewFilter,
QueryFilter next)
Creates a filter that will select the properties of a map object to view
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<Object,Object> |
filterView(Map<Object,Object> data)
Select only the attributes to view from the map data
|
protected List<Map<Object,Object>> |
filterViewCollection(Collection<Map<Object,Object>> result,
Set viewFilter)
Filter the view of each element in the collection
|
List<Map<Object,Object>> |
query(List queries)
Filter the properties to view of the query result
|
List<Map<Object,Object>> |
query(String query)
Filter the properties to view of the query result
|
protected QueryFilter next
protected Set viewFilter
public PropertiesViewFilter(QueryFilter next)
next - - the next query filter that will return a collection of mapspublic PropertiesViewFilter(Set viewFilter, QueryFilter next)
viewFilter - - the properties to viewnext - - the next query filter that will return a collection of mapspublic List<Map<Object,Object>> query(String query) throws Exception
query in interface QueryFilterquery - - the query stringExceptionpublic List<Map<Object,Object>> query(List queries) throws Exception
query in interface QueryFilterqueries - - the query mapExceptionprotected List<Map<Object,Object>> filterViewCollection(Collection<Map<Object,Object>> result, Set viewFilter)
result - - the lists to filter the view fromviewFilter - - the views to selectCopyright © 2005–2018 FuseSource, Corp.. All rights reserved.