Class FileCachingQueryList
java.lang.Object
org.aksw.iguana.cc.query.list.FileBasedQueryList
org.aksw.iguana.cc.query.list.impl.FileCachingQueryList
- All Implemented Interfaces:
QueryList
A query list which reads the queries into memory on initialization.
During the benchmark the query are returned from the memory.
- Author:
- frensing
-
Field Summary
Fields inherited from class org.aksw.iguana.cc.query.list.FileBasedQueryList
querySource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetQuery
(int index) This method returns a query at the given index.getQueryStream
(int index) int
size()
This method returns the amount of queries in the query list.Methods inherited from class org.aksw.iguana.cc.query.list.FileBasedQueryList
hashCode
-
Constructor Details
-
FileCachingQueryList
- Throws:
IOException
-
-
Method Details
-
getQuery
Description copied from class:FileBasedQueryList
This method returns a query at the given index.- Specified by:
getQuery
in interfaceQueryList
- Specified by:
getQuery
in classFileBasedQueryList
- Parameters:
index
- Index of the query in the list- Returns:
- The query at the given index
-
getQueryStream
- Specified by:
getQueryStream
in interfaceQueryList
- Specified by:
getQueryStream
in classFileBasedQueryList
-
size
public int size()Description copied from class:FileBasedQueryList
This method returns the amount of queries in the query list.- Specified by:
size
in interfaceQueryList
- Overrides:
size
in classFileBasedQueryList
- Returns:
- The amount of queries in the query list
-