Class SearchRequestContext

java.lang.Object
org.opensearch.action.search.SearchRequestContext

@InternalApi public class SearchRequestContext extends Object
This class holds request-level context for search queries at the coordinator node
Opensearch.internal:
  • Method Details

    • phaseTookMap

      public Map<String,Long> phaseTookMap()
    • getAbsoluteStartNanos

      public long getAbsoluteStartNanos()
      Request start time in nanos
    • totalHits

      public org.apache.lucene.search.TotalHits totalHits()
    • getTaskResourceUsageSupplier

      public Supplier<org.opensearch.core.tasks.resourcetracker.TaskResourceInfo> getTaskResourceUsageSupplier()
    • recordPhaseResourceUsage

      public void recordPhaseResourceUsage(org.opensearch.core.tasks.resourcetracker.TaskResourceInfo usage)
    • getPhaseResourceUsage

      public List<org.opensearch.core.tasks.resourcetracker.TaskResourceInfo> getPhaseResourceUsage()
    • getRequest

      public SearchRequest getRequest()