Class QueryCacheStats
java.lang.Object
org.opensearch.client.opensearch._types.QueryCacheStats
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<QueryCacheStats.Builder,QueryCacheStats>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class QueryCacheStats
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<QueryCacheStats.Builder,QueryCacheStats>
The statistics about query cache usage.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<QueryCacheStats> Json deserializer forQueryCacheStats -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryCacheStats.Builderbuilder()final longRequired - The total number of entries added to the query cache across all shards assigned to the selected nodes.final longRequired - The total number of entries currently stored in the query cache across all shards assigned to the selected nodes.booleanfinal longRequired - The total number of query cache evictions across all shards assigned to the selected nodes.inthashCode()final longhitCount()Required - The total number of query cache hits across all shards assigned to the selected nodes.final StringThe human-readable amount of memory used for the query cache.final longRequired - The total amount, in bytes, of memory used for the query cache across all shards assigned to the selected nodes.final longRequired - The total number of query cache misses across all shards assigned to the selected nodes.static QueryCacheStatsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final longRequired - The total number of hits and misses stored in the query cache across all shards assigned to the selected nodes.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forQueryCacheStats
-
-
Method Details
-
of
public static QueryCacheStats of(Function<QueryCacheStats.Builder, ObjectBuilder<QueryCacheStats>> fn) -
cacheCount
public final long cacheCount()Required - The total number of entries added to the query cache across all shards assigned to the selected nodes. This number includes all current and evicted entries.API name:
cache_count -
cacheSize
public final long cacheSize()Required - The total number of entries currently stored in the query cache across all shards assigned to the selected nodes.API name:
cache_size -
evictions
public final long evictions()Required - The total number of query cache evictions across all shards assigned to the selected nodes.API name:
evictions -
hitCount
public final long hitCount()Required - The total number of query cache hits across all shards assigned to the selected nodes.API name:
hit_count -
memorySize
The human-readable amount of memory used for the query cache.API name:
memory_size -
memorySizeInBytes
public final long memorySizeInBytes()Required - The total amount, in bytes, of memory used for the query cache across all shards assigned to the selected nodes.API name:
memory_size_in_bytes -
missCount
public final long missCount()Required - The total number of query cache misses across all shards assigned to the selected nodes.API name:
miss_count -
totalCount
public final long totalCount()Required - The total number of hits and misses stored in the query cache across all shards assigned to the selected nodes.API name:
total_count -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<QueryCacheStats.Builder,QueryCacheStats> - Returns:
- a new builder instance.
-
builder
-
setupQueryCacheStatsDeserializer
protected static void setupQueryCacheStatsDeserializer(ObjectDeserializer<QueryCacheStats.Builder> op) -
hashCode
public int hashCode() -
equals
-