public abstract class ResultTransformFilter extends Object implements QueryFilter
QUERY_DELIMETER| Modifier | Constructor and Description |
|---|---|
protected |
ResultTransformFilter(QueryFilter next)
Constructs a query filter that transform the format of the query result
|
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
query(List queries)
Transforms the queried results to a collection of different objects
|
List |
query(String query)
Transforms the queried results to a collection of different objects
|
protected abstract Object |
transformElement(Object obj)
Transform a result object
|
protected List<Object> |
transformList(List<Object> result)
Transforms a collection to a collection of different objects.
|
protected ResultTransformFilter(QueryFilter next)
next - - the query filter to retrieve the results frompublic List query(String query) throws Exception
query in interface QueryFilterquery - - the query stringExceptionpublic List<Object> query(List queries) throws Exception
query in interface QueryFilterqueries - - the query mapExceptionprotected List<Object> transformList(List<Object> result) throws Exception
result - - the collection to transformExceptionprotected abstract Object transformElement(Object obj) throws Exception
obj - - the object instance to transformExceptionCopyright © 2005–2018 FuseSource, Corp.. All rights reserved.