Module org.apache.lucene.monitor
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The field for thecachedQueries
record component.private final long
The field for thelastPurged
record component.private final int
The field for thequeries
record component. -
Constructor Summary
ConstructorsConstructorDescriptionQueryCacheStats
(int queries, int cachedQueries, long lastPurged) Creates an instance of aQueryCacheStats
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thecachedQueries
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
Returns the value of thelastPurged
record component.int
queries()
Returns the value of thequeries
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
queries
private final int queriesThe field for thequeries
record component. -
cachedQueries
private final int cachedQueriesThe field for thecachedQueries
record component. -
lastPurged
private final long lastPurgedThe field for thelastPurged
record component.
-
-
Constructor Details
-
QueryCacheStats
public QueryCacheStats(int queries, int cachedQueries, long lastPurged) Creates an instance of aQueryCacheStats
record class.- Parameters:
queries
- the value for thequeries
record componentcachedQueries
- the value for thecachedQueries
record componentlastPurged
- the value for thelastPurged
record 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 thequeries
record component.- Returns:
- the value of the
queries
record component
-
cachedQueries
public int cachedQueries()Returns the value of thecachedQueries
record component.- Returns:
- the value of the
cachedQueries
record component
-
lastPurged
public long lastPurged()Returns the value of thelastPurged
record component.- Returns:
- the value of the
lastPurged
record component
-