Package org.elasticsearch.action.search
Class SearchShard
org.elasticsearch.action.search.SearchShard
- All Implemented Interfaces:
<SearchShard>
A class that encapsulates the
ShardId
and the cluster alias
of a shard used during the search action.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo(SearchShard o)
boolean
o)
Return the cluster alias if we are executing a cross cluster search request,null
otherwise.Return theShardId
of this shard.int
hashCode()
toString()
Methods inherited from class java.lang.
, , , , , , ,
-
Constructor Details
-
SearchShard
-
-
Method Details
-
getClusterAlias
@Nullable public 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:
in interface
<SearchShard>
-
equals
public boolean equals( o)- Overrides:
in class
-
hashCode
public int hashCode()- Overrides:
in class
-
toString
public toString()- Overrides:
in class
-