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
FieldsModifier and TypeFieldDescriptionprotected final QuerySourceThis is the QuerySource from which the queries should be retrieved. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringgetQuery(int index) This method returns a query at the given index.abstract InputStreamgetQueryStream(int index) inthashCode()This method returns the hashcode of the query list which is the hashcode of the query source.intsize()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:
getQueryin interfaceQueryList- Parameters:
index- Index of the query in the list- Returns:
- The query at the given index
- Throws:
IOException
-
getQueryStream
- Specified by:
getQueryStreamin interfaceQueryList- Throws:
IOException
-