Class LinearQuerySelector

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

public class LinearQuerySelector extends QuerySelector
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
  • 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 class QuerySelector
      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 class QuerySelector
      Returns: