primary
@Nullable
public final java.lang.Boolean primary()
If true, returns explanation for the primary shard for the given shard ID.
API name: primary
JsonpSerializable
@JsonpDeserializable public class AllocationExplainRequest extends RequestBase implements JsonpSerializable
Modifier and Type | Class | Description |
---|---|---|
static class |
AllocationExplainRequest.Builder |
Builder for
AllocationExplainRequest . |
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
Modifier and Type | Field | Description |
---|---|---|
static JsonpDeserializer<AllocationExplainRequest> |
_DESERIALIZER |
Json deserializer for
AllocationExplainRequest |
static Endpoint<AllocationExplainRequest,AllocationExplainResponse,ErrorResponse> |
_ENDPOINT |
Endpoint "
cluster.allocation_explain ". |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
currentNode() |
Specifies the node ID or the name of the node to only explain a shard that is
currently located on the specified node.
|
java.lang.Boolean |
includeDiskInfo() |
If true, returns information about disk usage and shard sizes.
|
java.lang.Boolean |
includeYesDecisions() |
If true, returns YES decisions in explanation.
|
java.lang.String |
index() |
Specifies the name of the index that you would like an explanation for.
|
static AllocationExplainRequest |
of(java.util.function.Function<AllocationExplainRequest.Builder,ObjectBuilder<AllocationExplainRequest>> fn) |
|
java.lang.Boolean |
primary() |
If true, returns explanation for the primary shard for the given shard ID.
|
void |
serialize(jakarta.json.stream.JsonGenerator generator,
JsonpMapper mapper) |
Serialize this object to JSON.
|
protected void |
serializeInternal(jakarta.json.stream.JsonGenerator generator,
JsonpMapper mapper) |
|
protected static void |
setupAllocationExplainRequestDeserializer(ObjectDeserializer<AllocationExplainRequest.Builder> op) |
|
java.lang.Integer |
shard() |
Specifies the ID of the shard that you would like an explanation for.
|
toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
AllocationExplainRequest
cluster.allocation_explain
".
API name: current_node
API name: include_disk_info
API name: include_yes_decisions
API name: index
API name: primary
API name: shard
serialize
in interface JsonpSerializable