Package org.aksw.iguana.cc.query.list
Class FileBasedQueryList
java.lang.Object
org.aksw.iguana.cc.query.list.FileBasedQueryList
- All Implemented Interfaces:
QueryList
- Direct Known Subclasses:
FileCachingQueryList
,FileReadingQueryList
The abstract class for a QueryList. A query list provides the queries to the QueryHandler.
- Author:
- frensing
-
Field Summary
Modifier and TypeFieldDescriptionprotected final QuerySource
This is the QuerySource from which the queries should be retrieved. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
getQuery
(int index) This method returns a query at the given index.abstract InputStream
getQueryStream
(int index) int
hashCode()
This method returns the hashcode of the query list which is the hashcode of the query source.int
size()
This method returns the amount of queries in the query list.
-
Field Details
-
querySource
This is the QuerySource from which the queries should be retrieved.
-
-
Constructor Details
-
FileBasedQueryList
-
-
Method Details
-
size
public int size()This method returns the amount of queries in the query list. -
hashCode
public int hashCode()This method returns the hashcode of the query list which is the hashcode of the query source. -
getQuery
This method returns a query at the given index.- Specified by:
getQuery
in interfaceQueryList
- Parameters:
index
- Index of the query in the list- Returns:
- The query at the given index
- Throws:
IOException
-
getQueryStream
- Specified by:
getQueryStream
in interfaceQueryList
- Throws:
IOException
-