Class Util.TopNSearcher<T>

java.lang.Object
org.apache.lucene.util.fst.Util.TopNSearcher<T>
Enclosing class:
Util

public static class Util.TopNSearcher<T> extends Object
Utility class to find top N shortest paths from start point(s).
  • Constructor Details

    • TopNSearcher

      public TopNSearcher(FST<T> fst, int topN, int maxQueueDepth, Comparator<T> comparator)
      Creates an unbounded TopNSearcher
      Parameters:
      fst - the FST to search on
      topN - the number of top scoring entries to retrieve
      maxQueueDepth - the maximum size of the queue of possible top entries
      comparator - the comparator to select the top N
    • TopNSearcher

      public TopNSearcher(FST<T> fst, int topN, int maxQueueDepth, Comparator<T> comparator, Comparator<Util.FSTPath<T>> pathComparator)
  • Method Details