primary
public boolean primary()
Required - API name:
primary
JsonpSerializable
@JsonpDeserializable public final class ShardRouting extends java.lang.Object implements JsonpSerializable
Modifier and Type | Class | Description |
---|---|---|
static class |
ShardRouting.Builder |
Builder for
ShardRouting . |
Modifier and Type | Field | Description |
---|---|---|
static JsonpDeserializer<ShardRouting> |
_DESERIALIZER |
Json deserializer for
ShardRouting |
Constructor | Description |
---|---|
ShardRouting(ShardRouting.Builder builder) |
|
ShardRouting(java.util.function.Function<ShardRouting.Builder,ShardRouting.Builder> fn) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
node() |
Required - API name:
node |
boolean |
primary() |
Required - API name:
primary |
java.lang.String |
relocatingNode() |
API name:
relocating_node |
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 |
setupShardRoutingDeserializer(DelegatingDeserializer<ShardRouting.Builder> op) |
|
ShardRoutingState |
state() |
Required - API name:
state |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ShardRouting
node
primary
relocating_node
state
serialize
in interface JsonpSerializable