Class Segment
java.lang.Object
co.elastic.clients.elasticsearch.indices.segments.Segment
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class Segment extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSegment.BuilderBuilder forSegment. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Segment>_DESERIALIZERJson deserializer forSegment -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>attributes()Required - API name:attributesbooleancommitted()Required - API name:committedbooleancompound()Required - API name:compoundlongdeletedDocs()Required - API name:deleted_docsintgeneration()Required - API name:generationdoublememoryInBytes()Required - API name:memory_in_byteslongnumDocs()Required - API name:num_docsstatic Segmentof(java.util.function.Function<Segment.Builder,ObjectBuilder<Segment>> fn)booleansearch()Required - API name:searchvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupSegmentDeserializer(ObjectDeserializer<Segment.Builder> op)doublesizeInBytes()Required - API name:size_in_bytesjava.lang.Stringversion()Required - API name:versionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forSegment
-
-
Method Details
-
of
-
attributes
public final java.util.Map<java.lang.String,java.lang.String> attributes()Required - API name:attributes -
committed
public final boolean committed()Required - API name:committed -
compound
public final boolean compound()Required - API name:compound -
deletedDocs
public final long deletedDocs()Required - API name:deleted_docs -
generation
public final int generation()Required - API name:generation -
memoryInBytes
public final double memoryInBytes()Required - API name:memory_in_bytes -
search
public final boolean search()Required - API name:search -
sizeInBytes
public final double sizeInBytes()Required - API name:size_in_bytes -
numDocs
public final long numDocs()Required - API name:num_docs -
version
public final java.lang.String version()Required - API name:version -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupSegmentDeserializer
-