Class ScrollContext

java.lang.Object
org.elasticsearch.search.internal.ScrollContext

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

    Fields 
    Modifier and Type Field Description
    org.apache.lucene.search.ScoreDoc lastEmittedDoc  
    float maxScore  
    Scroll scroll  
    org.apache.lucene.search.TotalHits totalHits  
  • Constructor Summary

    Constructors 
    Constructor Description
    ScrollContext()  
  • Method Summary

    Modifier and Type Method Description
    <T> T getFromContext​(java.lang.String key)
    Returns the object or null if the given key does not have a value in the context
    void putInContext​(java.lang.String key, java.lang.Object value)
    Puts the object into the context

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getFromContext

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

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