Class TableRowService


  • public class TableRowService
    extends QueryResultService
    A service that produces results in nested rows for use in tables.
    Author:
    Alex Kalderimis
    • Constructor Detail

      • TableRowService

        public TableRowService​(InterMineAPI im)
        Parameters:
        im - The InterMine state object
    • Method Detail

      • canServe

        protected boolean canServe​(Format format)
        Description copied from class: WebService
        Check whether the format is acceptable. By default returns true. Services with a particular set of accepted formats should override this and check.
        Overrides:
        canServe in class QueryResultService
        Parameters:
        format - The format to check.
        Returns:
        whether or not this format is acceptable.
      • setHeaderAttributes

        protected void setHeaderAttributes​(PathQuery pq,
                                           java.lang.Integer start,
                                           java.lang.Integer size)
        Description copied from class: QueryResultService
        Set the header attributes of the output based on the values of the PathQuery
        Overrides:
        setHeaderAttributes in class QueryResultService
        Parameters:
        pq - The path query to be run
        start - The beginning of this set of results
        size - The size of this set of results
      • runPathQuery

        public void runPathQuery​(PathQuery pathQuery,
                                 int firstResult,
                                 int maxResults)
        Description copied from class: QueryResultService
        Runs path query and returns to output obtained results.
        Overrides:
        runPathQuery in class QueryResultService
        Parameters:
        pathQuery - path query
        firstResult - index of first result, that should be returned
        maxResults - maximum number of results