Class ShardCommit
java.lang.Object
org.opensearch.client.opensearch.indices.stats.ShardCommit
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ShardCommit.Builder,ShardCommit>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ShardCommit
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<ShardCommit.Builder,ShardCommit>
The commit information for a shard.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ShardCommit> Json deserializer forShardCommit -
Method Summary
Modifier and TypeMethodDescriptionstatic ShardCommit.Builderbuilder()booleanfinal intRequired - The generation number of the commit.inthashCode()final Stringid()Required - API name:idfinal longnumDocs()Required - The number of documents in the commit.static ShardCommitvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.userData()Required - The user-defined data associated with the commit.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 forShardCommit
-
-
Method Details
-
of
-
generation
public final int generation()Required - The generation number of the commit.API name:
generation -
id
Required - API name:id -
numDocs
public final long numDocs()Required - The number of documents in the commit.API name:
num_docs -
userData
Required - The user-defined data associated with the commit.API name:
user_data -
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<ShardCommit.Builder,ShardCommit> - Returns:
- a new builder instance.
-
builder
-
setupShardCommitDeserializer
-
hashCode
public int hashCode() -
equals
-