Class ScrollContext


  • public final class ScrollContext
    extends Object
    Wrapper around information that needs to stay around when scrolling.
    • Field Detail

      • maxScore

        public float maxScore
      • lastEmittedDoc

        public ScoreDoc lastEmittedDoc
      • scroll

        public Scroll scroll
    • Constructor Detail

      • ScrollContext

        public ScrollContext()
    • Method Detail

      • getFromContext

        public <T> T getFromContext​(String key)
        Returns the object or null if the given key does not have a value in the context
      • putInContext

        public void putInContext​(String key,
                                 Object value)
        Puts the object into the context