Class RandomQuerySelector
java.lang.Object
org.aksw.iguana.cc.query.selector.QuerySelector
org.aksw.iguana.cc.query.selector.impl.RandomQuerySelector
This QuerySelector is used to get the next query index in a random order.
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
int
This method gives the next query index that should be used.
-
Field Details
-
indexGenerator
-
-
Constructor Details
-
RandomQuerySelector
public RandomQuerySelector(int size, long seed)
-
-
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()- Specified by:
getCurrentIndex
in classQuerySelector
-