Package org.apache.lucene.monitor
Class SlowLog
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) void
addAll
(Iterable<SlowLog.Entry> queries) Add all entries to this slow log(package private) void
Add 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, wait
Methods 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:
iterator
in interfaceIterable<SlowLog.Entry>
-
toString
-