Class StringListQueryList

java.lang.Object
org.aksw.iguana.cc.query.list.impl.StringListQueryList
All Implemented Interfaces:
QueryList

public class StringListQueryList extends Object implements QueryList
  • Constructor Details

    • StringListQueryList

      public StringListQueryList(List<String> queries)
  • Method Details

    • getQuery

      public String getQuery(int index) throws IOException
      Description copied from interface: QueryList
      This method returns a query at the given index.
      Specified by:
      getQuery in interface QueryList
      Parameters:
      index - Index of the query in the list
      Returns:
      The query at the given index
      Throws:
      IOException
    • getQueryStream

      public InputStream getQueryStream(int index) throws IOException
      Specified by:
      getQueryStream in interface QueryList
      Throws:
      IOException
    • size

      public int size()
      Description copied from interface: QueryList
      This method returns the amount of queries in the query list.
      Specified by:
      size in interface QueryList
      Returns:
      The amount of queries in the query list
    • hashCode

      public int hashCode()
      Description copied from interface: QueryList
      This method returns the hashcode of the query list which is the hashcode of the query source.
      Specified by:
      hashCode in interface QueryList
      Overrides:
      hashCode in class Object
      Returns:
      The hashcode of the query list