Module org.elasticsearch.server
Package org.elasticsearch.action.search
Class SearchResponse.Cluster.Builder
java.lang.Object
org.elasticsearch.action.search.SearchResponse.Cluster.Builder
- Enclosing class:
- SearchResponse.Cluster
Since the Cluster object is immutable, use this Builder class to create
a new Cluster object using the "copyFrom" Cluster passed in and set only
changed values.
Since the clusterAlias, indexExpression and skipUnavailable fields are
never changed once set, this Builder provides no setter method for them.
All other fields can be set and override the value in the "copyFrom" Cluster.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setFailedShards
(int failedShards) setFailures
(List<ShardSearchFailure> failures) setSkippedShards
(int skippedShards) setSuccessfulShards
(int successfulShards) setTimedOut
(boolean timedOut) setTotalShards
(int totalShards)
-
Constructor Details
-
Builder
-
-
Method Details
-
build
- Returns:
- new Cluster object using the new values passed in via setters or the values in the "copyFrom" Cluster object set in the Builder constructor.
-
setStatus
-
setTotalShards
-
setSuccessfulShards
-
setSkippedShards
-
setFailedShards
-
setFailures
-
setTook
-
setTimedOut
-