Class QueryCacheStats

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

@JsonpDeserializable public class QueryCacheStats extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • cacheCount

      public final int cacheCount()
      Required - Total number of entries added to the query cache across all shards assigned to selected nodes. This number includes current and evicted entries.

      API name: cache_count

    • cacheSize

      public final int cacheSize()
      Required - Total number of entries currently in the query cache across all shards assigned to selected nodes.

      API name: cache_size

    • evictions

      public final int evictions()
      Required - Total number of query cache evictions across all shards assigned to selected nodes.

      API name: evictions

    • hitCount

      public final int hitCount()
      Required - Total count of query cache hits across all shards assigned to selected nodes.

      API name: hit_count

    • memorySize

      @Nullable public final String memorySize()
      Total amount of memory used for the query cache across all shards assigned to selected nodes.

      API name: memory_size

    • memorySizeInBytes

      public final long memorySizeInBytes()
      Required - Total amount, in bytes, of memory used for the query cache across all shards assigned to selected nodes.

      API name: memory_size_in_bytes

    • missCount

      public final int missCount()
      Required - Total count of query cache misses across all shards assigned to selected nodes.

      API name: miss_count

    • totalCount

      public final int totalCount()
      Required - Total count of hits and misses in the query cache across all shards assigned to selected nodes.

      API name: total_count

    • 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 String toString()
      Overrides:
      toString in class Object
    • setupQueryCacheStatsDeserializer

      protected static void setupQueryCacheStatsDeserializer(ObjectDeserializer<QueryCacheStats.Builder> op)