Class RandomQuerySelector

java.lang.Object
org.aksw.iguana.cc.query.selector.QuerySelector
org.aksw.iguana.cc.query.selector.impl.RandomQuerySelector

public class RandomQuerySelector extends QuerySelector
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 Details

    • indexGenerator

      protected final Random 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 class QuerySelector
      Returns:
      the next query index
    • getCurrentIndex

      public int getCurrentIndex()
      Specified by:
      getCurrentIndex in class QuerySelector