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
ConstructorDescriptionSearchShardTarget(String nodeId, ShardId shardId, String clusterAlias, OriginalIndices originalIndices)
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Returns the fully qualified index name, including the index prefix that indicates which cluster results come from.getIndex()
int
hashCode()
toString()
void
writeTo(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:
compareTo
in interfaceComparable<SearchShardTarget>
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-