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
Constructors Constructor Description SearchShardTarget(String nodeId, ShardId shardId, String clusterAlias, OriginalIndices originalIndices)SearchShardTarget(StreamInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SearchShardTarget o)booleanequals(Object o)StringgetClusterAlias()StringgetFullyQualifiedIndexName()Returns the fully qualified index name, including the index prefix that indicates which cluster results come from.StringgetIndex()StringgetNodeId()TextgetNodeIdText()OriginalIndicesgetOriginalIndices()ShardIdgetShardId()inthashCode()StringtoString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
-
-
Constructor Detail
-
SearchShardTarget
public SearchShardTarget(StreamInput in) throws IOException
- Throws:
IOException
-
SearchShardTarget
public SearchShardTarget(String nodeId, ShardId shardId, @Nullable String clusterAlias, OriginalIndices originalIndices)
-
-
Method Detail
-
getNodeIdText
public Text getNodeIdText()
-
getIndex
public String getIndex()
-
getShardId
public ShardId getShardId()
-
getOriginalIndices
public OriginalIndices getOriginalIndices()
-
getFullyQualifiedIndexName
public String getFullyQualifiedIndexName()
Returns the fully qualified index name, including the index prefix that indicates which cluster results come from.
-
compareTo
public int compareTo(SearchShardTarget o)
- Specified by:
compareToin interfaceComparable<SearchShardTarget>
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
-