Class QueryCacheStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.QueryCacheStats.Builder
- All Implemented Interfaces:
CopyableBuilder<QueryCacheStats.Builder,,QueryCacheStats> MutableBuilder<QueryCacheStats.Builder,,QueryCacheStats> ObjectBuilder<QueryCacheStats>
- Enclosing class:
QueryCacheStats
public static class QueryCacheStats.Builder
extends ObjectBuilderBase
implements CopyableBuilder<QueryCacheStats.Builder,QueryCacheStats>
Builder for
QueryCacheStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aQueryCacheStats.final QueryCacheStats.BuildercacheCount(long value) Required - The total number of entries added to the query cache across all shards assigned to the selected nodes.final QueryCacheStats.BuildercacheSize(long value) Required - The total number of entries currently stored in the query cache across all shards assigned to the selected nodes.copy()Create a new builderCopyableBuilderthat is a copy of this one.final QueryCacheStats.Builderevictions(long value) Required - The total number of query cache evictions across all shards assigned to the selected nodes.final QueryCacheStats.BuilderhitCount(long value) Required - The total number of query cache hits across all shards assigned to the selected nodes.final QueryCacheStats.BuildermemorySize(String value) The human-readable amount of memory used for the query cache.final QueryCacheStats.BuildermemorySizeInBytes(long value) Required - The total amount, in bytes, of memory used for the query cache across all shards assigned to the selected nodes.final QueryCacheStats.BuildermissCount(long value) Required - The total number of query cache misses across all shards assigned to the selected nodes.final QueryCacheStats.BuildertotalCount(long value) Required - The total number of hits and misses stored in the query cache across all shards assigned to the selected nodes.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<QueryCacheStats.Builder,QueryCacheStats> - Returns:
- a new builder instance.
-
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
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
Required - The total number of query cache evictions across all shards assigned to the selected nodes.API name:
evictions -
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
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
Required - The total number of query cache misses across all shards assigned to the selected nodes.API name:
miss_count -
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 -
build
Builds aQueryCacheStats.- Specified by:
buildin interfaceObjectBuilder<QueryCacheStats>- Throws:
NullPointerException- if some of the required fields are null.
-