Package org.elasticsearch.search
Class SearchShardTarget
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
ConstructorsConstructorDescriptionSearchShardTarget(String nodeId, ShardId shardId, String clusterAlias, OriginalIndices originalIndices) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanReturns the fully qualified index name, including the index prefix that indicates which cluster results come from.getIndex()inthashCode()toString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Constructor Details
-
SearchShardTarget
- Throws:
IOException
-
SearchShardTarget
public SearchShardTarget(String nodeId, ShardId shardId, @Nullable String clusterAlias, OriginalIndices originalIndices)
-
-
Method Details
-
getNodeId
-
getNodeIdText
-
getIndex
-
getShardId
-
getOriginalIndices
-
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
-