Package org.elasticsearch.action.search
Class SearchShard
java.lang.Object
org.elasticsearch.action.search.SearchShard
- All Implemented Interfaces:
Comparable<SearchShard>
A class that encapsulates the
ShardId
and the cluster alias
of a shard used during the search action.-
Constructor Details
-
SearchShard
-
-
Method Details
-
getClusterAlias
Return the cluster alias if we are executing a cross cluster search request,null
otherwise. -
getShardId
Return theShardId
of this shard. -
compareTo
- Specified by:
compareTo
in interfaceComparable<SearchShard>
-
equals
-
hashCode
public int hashCode() -
toString
-