Class Segment
- java.lang.Object
-
- org.opensearch.client.opensearch.indices.segments.Segment
-
- All Implemented Interfaces:
JsonpSerializable
,PlainJsonSerializable
@JsonpDeserializable public class Segment extends java.lang.Object implements PlainJsonSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Segment.Builder
Builder forSegment
.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Segment>
_DESERIALIZER
Json deserializer forSegment
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
attributes()
Required - API name:attributes
boolean
committed()
Required - API name:committed
boolean
compound()
Required - API name:compound
long
deletedDocs()
Required - API name:deleted_docs
int
generation()
Required - API name:generation
double
memoryInBytes()
Required - API name:memory_in_bytes
long
numDocs()
Required - API name:num_docs
static Segment
of(java.util.function.Function<Segment.Builder,ObjectBuilder<Segment>> fn)
boolean
search()
Required - API name:search
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupSegmentDeserializer(ObjectDeserializer<Segment.Builder> op)
double
sizeInBytes()
Required - API name:size_in_bytes
java.lang.String
version()
Required - API name:version
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<Segment> _DESERIALIZER
Json deserializer forSegment
-
-
Method Detail
-
of
public static Segment of(java.util.function.Function<Segment.Builder,ObjectBuilder<Segment>> fn)
-
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
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupSegmentDeserializer
protected static void setupSegmentDeserializer(ObjectDeserializer<Segment.Builder> op)
-
-