Package org.apache.lucene.monitor
Record Class Monitor.QueryCacheStats
java.lang.Object
java.lang.Record
org.apache.lucene.monitor.Monitor.QueryCacheStats
- Record Components:
queries- Total number of queries in the query indexcachedQueries- Total number of queries int the query cachelastPurged- Time the query cache was last purged
- Enclosing class:
Monitor
public static record Monitor.QueryCacheStats(int queries, int cachedQueries, long lastPurged)
extends Record
Statistics for the query cache and query index
-
Constructor Summary
ConstructorsConstructorDescriptionQueryCacheStats(int queries, int cachedQueries, long lastPurged) Creates an instance of aQueryCacheStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecachedQueriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thelastPurgedrecord component.intqueries()Returns the value of thequeriesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryCacheStats
public QueryCacheStats(int queries, int cachedQueries, long lastPurged) Creates an instance of aQueryCacheStatsrecord class.- Parameters:
queries- the value for thequeriesrecord componentcachedQueries- the value for thecachedQueriesrecord componentlastPurged- the value for thelastPurgedrecord component
-
-
Method Details
-
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. All components in this record class are compared with '=='. -
queries
public int queries()Returns the value of thequeriesrecord component.- Returns:
- the value of the
queriesrecord component
-
cachedQueries
public int cachedQueries()Returns the value of thecachedQueriesrecord component.- Returns:
- the value of the
cachedQueriesrecord component
-
lastPurged
public long lastPurged()Returns the value of thelastPurgedrecord component.- Returns:
- the value of the
lastPurgedrecord component
-