Package org.opensearch.action.search
Class SearchRequestContext
java.lang.Object
org.opensearch.action.search.SearchRequestContext
This class holds request-level context for search queries at the coordinator node
- Opensearch.internal:
-
Method Summary
Modifier and TypeMethodDescriptionlong
Request start time in nanosList
<org.opensearch.core.tasks.resourcetracker.TaskResourceInfo> Supplier
<org.opensearch.core.tasks.resourcetracker.TaskResourceInfo> void
recordPhaseResourceUsage
(org.opensearch.core.tasks.resourcetracker.TaskResourceInfo usage) org.apache.lucene.search.TotalHits
-
Method Details
-
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
-
getRequest
-