Class TimeLimitingCollector

java.lang.Object
org.apache.lucene.search.TimeLimitingCollector
All Implemented Interfaces:
Collector

@Deprecated public class TimeLimitingCollector extends Object implements Collector
Deprecated.
The TimeLimitingCollector is used to timeout search requests that take longer than the maximum allowed search time limit. After this time is exceeded, the search thread is stopped by throwing a TimeLimitingCollector.TimeExceededException.
See Also:
  • Field Details

    • t0

      private long t0
      Deprecated.
    • timeout

      private long timeout
      Deprecated.
    • collector

      private Collector collector
      Deprecated.
    • clock

      private final Counter clock
      Deprecated.
    • ticksAllowed

      private final long ticksAllowed
      Deprecated.
    • greedy

      private boolean greedy
      Deprecated.
    • docBase

      private int docBase
      Deprecated.
  • Constructor Details

    • TimeLimitingCollector

      public TimeLimitingCollector(Collector collector, Counter clock, long ticksAllowed)
      Deprecated.
      Create a TimeLimitedCollector wrapper over another Collector with a specified timeout.
      Parameters:
      collector - the wrapped Collector
      clock - the timer clock
      ticksAllowed - max time allowed for collecting hits after which TimeLimitingCollector.TimeExceededException is thrown
  • Method Details