Class ShardFileSizeInfo
java.lang.Object
org.opensearch.client.opensearch.indices.stats.ShardFileSizeInfo
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ShardFileSizeInfo.Builder,ShardFileSizeInfo>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ShardFileSizeInfo
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<ShardFileSizeInfo.Builder,ShardFileSizeInfo>
The size information for shard files.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ShardFileSizeInfo> Json deserializer forShardFileSizeInfo -
Method Summary
Modifier and TypeMethodDescriptionfinal LongAPI name:average_size_in_bytesstatic ShardFileSizeInfo.Builderbuilder()final Longcount()The number of files.final StringRequired - The description of the file type.booleaninthashCode()final LongAPI name:max_size_in_bytesfinal LongAPI name:min_size_in_bytesstatic ShardFileSizeInfovoidserialize(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()API name:sizefinal longRequired - API name:size_in_bytesCreate 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 forShardFileSizeInfo
-
-
Method Details
-
of
public static ShardFileSizeInfo of(Function<ShardFileSizeInfo.Builder, ObjectBuilder<ShardFileSizeInfo>> fn) -
averageSizeInBytes
API name:average_size_in_bytes -
count
The number of files.API name:
count -
description
Required - The description of the file type.API name:
description -
maxSizeInBytes
API name:max_size_in_bytes -
minSizeInBytes
API name:min_size_in_bytes -
size
API name:size -
sizeInBytes
public final long sizeInBytes()Required - 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<ShardFileSizeInfo.Builder,ShardFileSizeInfo> - Returns:
- a new builder instance.
-
builder
-
setupShardFileSizeInfoDeserializer
protected static void setupShardFileSizeInfoDeserializer(ObjectDeserializer<ShardFileSizeInfo.Builder> op) -
hashCode
public int hashCode() -
equals
-