Module org.elasticsearch.xcore
Record Class EnrichStatsAction.Response.CacheStats
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.enrich.action.EnrichStatsAction.Response.CacheStats
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
- Enclosing class:
EnrichStatsAction.Response
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionCacheStats(String nodeId, long count, long hits, long misses, long evictions, long hitsTimeInMillis, long missesTimeInMillis, long cacheSizeInBytes) Creates an instance of aCacheStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecacheSizeInBytesrecord component.longcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theevictionsrecord component.final inthashCode()Returns a hash code value for this object.longhits()Returns the value of thehitsrecord component.longReturns the value of thehitsTimeInMillisrecord component.longmisses()Returns the value of themissesrecord component.longReturns the value of themissesTimeInMillisrecord component.nodeId()Returns the value of thenodeIdrecord component.final StringtoString()Returns a string representation of this record class.org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
CacheStats
- Throws:
IOException
-
CacheStats
public CacheStats(String nodeId, long count, long hits, long misses, long evictions, long hitsTimeInMillis, long missesTimeInMillis, long cacheSizeInBytes) Creates an instance of aCacheStatsrecord class.- Parameters:
nodeId- the value for thenodeIdrecord componentcount- the value for thecountrecord componenthits- the value for thehitsrecord componentmisses- the value for themissesrecord componentevictions- the value for theevictionsrecord componenthitsTimeInMillis- the value for thehitsTimeInMillisrecord componentmissesTimeInMillis- the value for themissesTimeInMillisrecord componentcacheSizeInBytes- the value for thecacheSizeInBytesrecord component
-
-
Method Details
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
nodeId
Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
count
public long count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
hits
public long hits()Returns the value of thehitsrecord component.- Returns:
- the value of the
hitsrecord component
-
misses
public long misses()Returns the value of themissesrecord component.- Returns:
- the value of the
missesrecord component
-
evictions
public long evictions()Returns the value of theevictionsrecord component.- Returns:
- the value of the
evictionsrecord component
-
hitsTimeInMillis
public long hitsTimeInMillis()Returns the value of thehitsTimeInMillisrecord component.- Returns:
- the value of the
hitsTimeInMillisrecord component
-
missesTimeInMillis
public long missesTimeInMillis()Returns the value of themissesTimeInMillisrecord component.- Returns:
- the value of the
missesTimeInMillisrecord component
-
cacheSizeInBytes
public long cacheSizeInBytes()Returns the value of thecacheSizeInBytesrecord component.- Returns:
- the value of the
cacheSizeInBytesrecord component
-