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.ScoreDoclastEmittedDocfloatmaxScoreScrollscrollorg.apache.lucene.search.TotalHitstotalHits -
Constructor Summary
Constructors Constructor Description ScrollContext() -
Method Summary
Modifier and Type Method Description <T> TgetFromContext(java.lang.String key)Returns the object ornullif the given key does not have a value in the contextvoidputInContext(java.lang.String key, java.lang.Object value)Puts the object into the context
-
Field Details
-
totalHits
public org.apache.lucene.search.TotalHits totalHits -
maxScore
public float maxScore -
lastEmittedDoc
public org.apache.lucene.search.ScoreDoc lastEmittedDoc -
scroll
-
-
Constructor Details
-
ScrollContext
public ScrollContext()
-
-
Method Details
-
getFromContext
public <T> T getFromContext(java.lang.String key)Returns the object ornullif 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
-