Class LinearQuerySelector
java.lang.Object
org.aksw.iguana.cc.query.selector.QuerySelector
org.aksw.iguana.cc.query.selector.impl.LinearQuerySelector
This QuerySelector is used to get the next query index in a linear order. If the last query is reached it starts
again at the first query.
It is used by the QueryHandler to get the next query.
- Author:
- frensing
-
Field Summary
Fields inherited from class org.aksw.iguana.cc.query.selector.QuerySelector
index, size
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Return the current index.int
This method gives the next query index that should be used.
-
Constructor Details
-
LinearQuerySelector
public LinearQuerySelector(int size)
-
-
Method Details
-
getNextIndex
public int getNextIndex()Description copied from class:QuerySelector
This method gives the next query index that should be used.- Specified by:
getNextIndex
in classQuerySelector
- Returns:
- the next query index
-
getCurrentIndex
public int getCurrentIndex()Return the current index. This is the index of the last returned query. If no query was returned yet, it returns -1.- Specified by:
getCurrentIndex
in classQuerySelector
- Returns:
-