Interface QueryList

All Known Implementing Classes:
FileBasedQueryList, FileCachingQueryList, FileReadingQueryList, StringListQueryList

public interface QueryList
The abstract class for a QueryList. A query list provides the queries to the QueryHandler.
Author:
frensing
  • Method Summary

    Modifier and Type
    Method
    Description
    getQuery(int index)
    This method returns a query at the given index.
    getQueryStream(int index)
     
    int
    This method returns the hashcode of the query list which is the hashcode of the query source.
    int
    This method returns the amount of queries in the query list.
  • Method Details

    • size

      int size()
      This method returns the amount of queries in the query list.
      Returns:
      The amount of queries in the query list
    • hashCode

      int hashCode()
      This method returns the hashcode of the query list which is the hashcode of the query source.
      Overrides:
      hashCode in class Object
      Returns:
      The hashcode of the query list
    • getQuery

      String getQuery(int index) throws IOException
      This method returns a query at the given index.
      Parameters:
      index - Index of the query in the list
      Returns:
      The query at the given index
      Throws:
      IOException
    • getQueryStream

      InputStream getQueryStream(int index) throws IOException
      Throws:
      IOException