primary
If true, returns explanation for the primary shard for the given shard ID.
API name: primary
ObjectBuilder<AllocationExplainRequest>
public static class AllocationExplainRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<AllocationExplainRequest>
AllocationExplainRequest
.Constructor | Description |
---|---|
Builder() |
Modifier and Type | Method | Description |
---|---|---|
AllocationExplainRequest |
build() |
Builds a
AllocationExplainRequest . |
AllocationExplainRequest.Builder |
currentNode(java.lang.String value) |
Specifies the node ID or the name of the node to only explain a shard that is
currently located on the specified node.
|
AllocationExplainRequest.Builder |
includeDiskInfo(java.lang.Boolean value) |
If true, returns information about disk usage and shard sizes.
|
AllocationExplainRequest.Builder |
includeYesDecisions(java.lang.Boolean value) |
If true, returns YES decisions in explanation.
|
AllocationExplainRequest.Builder |
index(java.lang.String value) |
Specifies the name of the index that you would like an explanation for.
|
AllocationExplainRequest.Builder |
primary(java.lang.Boolean value) |
If true, returns explanation for the primary shard for the given shard ID.
|
AllocationExplainRequest.Builder |
shard(java.lang.Integer value) |
Specifies the ID of the shard that you would like an explanation for.
|
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
API name: current_node
API name: include_disk_info
API name: include_yes_decisions
API name: index
API name: primary
API name: shard
AllocationExplainRequest
.build
in interface ObjectBuilder<AllocationExplainRequest>
java.lang.NullPointerException
- if some of the required fields are null.