Class ResultTransformFilter
- java.lang.Object
-
- org.apache.activemq.console.filter.ResultTransformFilter
-
- All Implemented Interfaces:
QueryFilter
- Direct Known Subclasses:
MapTransformFilter
public abstract class ResultTransformFilter extends Object implements QueryFilter
-
-
Field Summary
-
Fields inherited from interface org.apache.activemq.console.filter.QueryFilter
QUERY_DELIMETER
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ResultTransformFilter(QueryFilter next)
Constructs a query filter that transform the format of the query result
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List
query(String query)
Transforms the queried results to a collection of different objectsList<Object>
query(List queries)
Transforms the queried results to a collection of different objectsprotected abstract Object
transformElement(Object obj)
Transform a result objectprotected List<Object>
transformList(List<Object> result)
Transforms a collection to a collection of different objects.
-
-
-
Constructor Detail
-
ResultTransformFilter
protected ResultTransformFilter(QueryFilter next)
Constructs a query filter that transform the format of the query result- Parameters:
next
- - the query filter to retrieve the results from
-
-
Method Detail
-
query
public List query(String query) throws Exception
Transforms the queried results to a collection of different objects- Specified by:
query
in interfaceQueryFilter
- Parameters:
query
- - the query string- Returns:
- collections of transformed objects
- Throws:
Exception
-
query
public List<Object> query(List queries) throws Exception
Transforms the queried results to a collection of different objects- Specified by:
query
in interfaceQueryFilter
- Parameters:
queries
- - the query map- Returns:
- collections of transformed objects
- Throws:
Exception
-
transformList
protected List<Object> transformList(List<Object> result) throws Exception
Transforms a collection to a collection of different objects.- Parameters:
result
- - the collection to transform- Returns:
- collection of properties objects
- Throws:
Exception
-
-