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
  • Constructor Details

    • 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 Details

    • query

      public List query(String query) throws Exception
      Transforms the queried results to a collection of different objects
      Specified by:
      query in interface QueryFilter
      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 interface QueryFilter
      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
    • transformElement

      protected abstract Object transformElement(Object obj) throws Exception
      Transform a result object
      Parameters:
      obj - - the object instance to transform
      Returns:
      the transformed object
      Throws:
      Exception