Class CompletionStats
java.lang.Object
org.opensearch.client.opensearch._types.CompletionStats
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<CompletionStats.Builder,CompletionStats>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class CompletionStats
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<CompletionStats.Builder,CompletionStats>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CompletionStats> Json deserializer forCompletionStats -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletionStats.Builderbuilder()booleanfinal Map<String, FieldSizeUsage> fields()The per-field completion statistics.inthashCode()static CompletionStatsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringsize()The human-readable size of memory used for completion.final longRequired - The total amount, in bytes, of memory used for completion across all shards assigned to the selected nodes.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forCompletionStats
-
-
Method Details
-
of
public static CompletionStats of(Function<CompletionStats.Builder, ObjectBuilder<CompletionStats>> fn) -
fields
The per-field completion statistics.API name:
fields -
size
The human-readable size of memory used for completion.API name:
size -
sizeInBytes
public final long sizeInBytes()Required - The total amount, in bytes, of memory used for completion across all shards assigned to the selected nodes.API name:
size_in_bytes -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CompletionStats.Builder,CompletionStats> - Returns:
- a new builder instance.
-
builder
-
setupCompletionStatsDeserializer
protected static void setupCompletionStatsDeserializer(ObjectDeserializer<CompletionStats.Builder> op) -
hashCode
public int hashCode() -
equals
-