java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.TermsPartition
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class TermsPartition
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • 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 interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • setupTermsPartitionDeserializer

      protected static void setupTermsPartitionDeserializer​(ObjectDeserializer<TermsPartition.Builder> op)