java.lang.Object
org.elasticsearch.search.SearchShardTarget
- All Implemented Interfaces:
Comparable<SearchShardTarget>,Writeable
public final class SearchShardTarget
extends Object
implements Writeable, Comparable<SearchShardTarget>
The target that the search request was executed on.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanReturns the fully qualified index name, including the index prefix that indicates which cluster results come from.getIndex()inthashCode()toString()NOTE: this representation is used as the "id" for shards for the REST response when query profiling is requested.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
SearchShardTarget
- Throws:
IOException
-
SearchShardTarget
-
-
Method Details
-
getNodeId
-
getNodeIdText
-
getIndex
-
getShardId
-
getClusterAlias
-
getFullyQualifiedIndexName
Returns the fully qualified index name, including the index prefix that indicates which cluster results come from. -
compareTo
- Specified by:
compareToin interfaceComparable<SearchShardTarget>
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
NOTE: this representation is used as the "id" for shards for the REST response when query profiling is requested. So changing this formulation may break systems that rely on the format, including the parser in SearchProfileResults.
-