Class Segment
java.lang.Object
org.opensearch.client.opensearch.indices.segments.Segment
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<Segment.Builder,Segment>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Segment
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<Segment.Builder,Segment>
The detailed information about a segment.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<Segment> Json deserializer forSegment -
Method Summary
Modifier and TypeMethodDescriptionRequired - The attributes of the segment.static Segment.Builderbuilder()final booleanRequired - Whether the segment is committed.final booleancompound()Required - Whether the segment is compound.final intRequired - The number of deleted documents in the segment.booleanfinal intRequired - The generation number of the segment.inthashCode()final Stringmemory()API name:memoryfinal LongAPI name:memory_in_bytesfinal intnumDocs()Required - The number of documents in the segment.static Segmentfinal booleansearch()Required - Whether the segment is searchable.voidserialize(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.final Stringversion()Required - API name:versionMethods 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 forSegment
-
-
Method Details
-
of
-
attributes
Required - The attributes of the segment.API name:
attributes -
committed
public final boolean committed()Required - Whether the segment is committed.API name:
committed -
compound
public final boolean compound()Required - Whether the segment is compound.API name:
compound -
deletedDocs
public final int deletedDocs()Required - The number of deleted documents in the segment.API name:
deleted_docs -
generation
public final int generation()Required - The generation number of the segment.API name:
generation -
memory
API name:memory -
memoryInBytes
API name:memory_in_bytes -
numDocs
public final int numDocs()Required - The number of documents in the segment.API name:
num_docs -
search
public final boolean search()Required - Whether the segment is searchable.API name:
search -
size
API name:size -
sizeInBytes
public final long sizeInBytes()Required - API name:size_in_bytes -
version
Required - API name:version -
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<Segment.Builder,Segment> - Returns:
- a new builder instance.
-
builder
-
setupSegmentDeserializer
-
hashCode
public int hashCode() -
equals
-