java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.action.search.SearchShardsResponse
- All Implemented Interfaces:
Writeable,RefCounted
A response of
SearchShardsRequest which contains the target shards grouped by ShardId-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TransportVersionstatic final TransportVersionstatic final TransportVersionFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionSearchShardsResponse(Collection<SearchShardsGroup> groups, int numSkippedShards, Collection<DiscoveryNode> nodes, Map<String, AliasFilter> aliasFilters) SearchShardsResponse(Collection<SearchShardsGroup> groups, int numSkippedShards, Collection<DiscoveryNode> nodes, Map<String, AliasFilter> aliasFilters, ResolvedIndexExpressions resolvedIndexExpressions) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SearchShardsResponseA map from index uuid to alias filtersList of target shards grouped by ShardIdgetNodes()List of nodes in the clusterintNumber of skipped shards not listed in GroupsinthashCode()toString()voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Field Details
-
SEARCH_SHARDS_RESOLVED_INDEX_EXPRESSIONS
-
SEARCH_SHARDS_NUM_SKIPPED
-
SEARCH_SHARDS_NUM_SKIPPED2
-
-
Constructor Details
-
SearchShardsResponse
public SearchShardsResponse(Collection<SearchShardsGroup> groups, int numSkippedShards, Collection<DiscoveryNode> nodes, Map<String, AliasFilter> aliasFilters, @Nullable ResolvedIndexExpressions resolvedIndexExpressions) -
SearchShardsResponse
public SearchShardsResponse(Collection<SearchShardsGroup> groups, int numSkippedShards, Collection<DiscoveryNode> nodes, Map<String, AliasFilter> aliasFilters) -
SearchShardsResponse
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Throws:
IOException
-
getNodes
List of nodes in the cluster -
getGroups
List of target shards grouped by ShardId -
getNumSkippedShards
public int getNumSkippedShards()Number of skipped shards not listed in Groups -
getAliasFilters
A map from index uuid to alias filters -
equals
-
hashCode
public int hashCode() -
fromLegacyResponse
-
toString
-
getResolvedIndexExpressions
-