Class ResultTransformFilter
java.lang.Object
org.apache.activemq.console.filter.ResultTransformFilter
- All Implemented Interfaces:
QueryFilter
- Direct Known Subclasses:
MapTransformFilter
-
Field Summary
Fields inherited from interface org.apache.activemq.console.filter.QueryFilter
QUERY_DELIMETER -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs a query filter that transform the format of the query result -
Method Summary
Modifier and TypeMethodDescriptionTransforms the queried results to a collection of different objectsTransforms the queried results to a collection of different objectsprotected abstract ObjecttransformElement(Object obj) Transform a result objecttransformList(List<Object> result) Transforms a collection to a collection of different objects.
-
Constructor Details
-
ResultTransformFilter
Constructs a query filter that transform the format of the query result- Parameters:
next- - the query filter to retrieve the results from
-
-
Method Details
-
query
Transforms the queried results to a collection of different objects- Specified by:
queryin interfaceQueryFilter- Parameters:
query- - the query string- Returns:
- collections of transformed objects
- Throws:
Exception
-
query
Transforms the queried results to a collection of different objects- Specified by:
queryin interfaceQueryFilter- Parameters:
queries- - the query map- Returns:
- collections of transformed objects
- Throws:
Exception
-
transformList
Transforms a collection to a collection of different objects.- Parameters:
result- - the collection to transform- Returns:
- collection of properties objects
- Throws:
Exception
-
transformElement
Transform a result object- Parameters:
obj- - the object instance to transform- Returns:
- the transformed object
- Throws:
Exception
-