Class PagedQuery


  • public class PagedQuery
    extends Object
    Author:
    Dale Visser
    • Constructor Detail

      • PagedQuery

        public PagedQuery​(String query,
                          QueryLanguage language,
                          int requestLimit,
                          int requestOffset)

        Creates an object that adds or modifies the limit and offset clauses of the query to be executed so that only those results to be displayed are requested from the query engine.

        Implementation note: The new object contains the user's query with appended or modified LIMIT and OFFSET clauses.

        Parameters:
        query - as it was specified by the user
        language - a QueryLanguage as specified by the user
        requestLimit - maximum number of results to return, as specified by the URL query parameters or cookies
        requestOffset - which result to start at when populating the result set
    • Method Detail

      • isPaged

        public boolean isPaged()
      • getLimit

        public int getLimit()
      • getOffset

        public int getOffset()