Package org.opensearch.action.search
Class SearchPhase
java.lang.Object
org.opensearch.action.search.SearchPhase
- All Implemented Interfaces:
org.opensearch.common.CheckedRunnable<IOException>
@PublicApi(since="1.0.0")
public abstract class SearchPhase
extends Object
implements org.opensearch.common.CheckedRunnable<IOException>
Base class for all individual search phases like collecting distributed frequencies, fetching documents, querying shards.
- Opensearch.api:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the phases name.Returns the SearchPhase name asSearchPhaseName
.long
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensearch.common.CheckedRunnable
run
-
Constructor Details
-
SearchPhase
-
-
Method Details
-
getStartTimeInNanos
public long getStartTimeInNanos() -
recordAndRun
- Throws:
IOException
-
getName
Returns the phases name. -
getSearchPhaseName
Returns the SearchPhase name asSearchPhaseName
. Exception will come if SearchPhase name is not defined inSearchPhaseName
- Returns:
SearchPhaseName
-