java.lang.Object
org.apache.lucene.monitor.SlowLog
- All Implemented Interfaces:
Iterable<SlowLog.Entry>
Reports on slow queries in a given match run
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddAll(Iterable<SlowLog.Entry> queries) Add all entries to this slow log(package private) voidAdd a query and time taken to the slow log.iterator()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
slowQueries
-
-
Constructor Details
-
SlowLog
public SlowLog()
-
-
Method Details
-
addQuery
Add a query and time taken to the slow log.The query will only be recorded if the time is above the configured limit
- Parameters:
query- the query idtime- the time taken by the query in ns
-
addAll
Add all entries to this slow log- Parameters:
queries- the entries to add
-
iterator
- Specified by:
iteratorin interfaceIterable<SlowLog.Entry>
-
toString
-