Class TermsPartition
- java.lang.Object
-
- org.opensearch.client.opensearch._types.aggregations.TermsPartition
-
- All Implemented Interfaces:
JsonpSerializable
,PlainJsonSerializable
@JsonpDeserializable public class TermsPartition extends java.lang.Object implements PlainJsonSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TermsPartition.Builder
Builder forTermsPartition
.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TermsPartition>
_DESERIALIZER
Json deserializer forTermsPartition
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
numPartitions()
Required - API name:num_partitions
static TermsPartition
of(java.util.function.Function<TermsPartition.Builder,ObjectBuilder<TermsPartition>> fn)
long
partition()
Required - API name:partition
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
setupTermsPartitionDeserializer(ObjectDeserializer<TermsPartition.Builder> op)
-
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<TermsPartition> _DESERIALIZER
Json deserializer forTermsPartition
-
-
Method Detail
-
of
public static TermsPartition of(java.util.function.Function<TermsPartition.Builder,ObjectBuilder<TermsPartition>> fn)
-
numPartitions
public final long numPartitions()
Required - API name:num_partitions
-
partition
public final long partition()
Required - API name:partition
-
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)
-
setupTermsPartitionDeserializer
protected static void setupTermsPartitionDeserializer(ObjectDeserializer<TermsPartition.Builder> op)
-
-