java.lang.Object
org.apache.lucene.monitor.QueryIndex
org.apache.lucene.monitor.ReadonlyQueryIndex
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classA Collector that decodes the stored query for each document hit reparsing them everytime.Nested classes/interfaces inherited from class org.apache.lucene.monitor.QueryIndex
QueryIndex.CachePopulator, QueryIndex.DataValues, QueryIndex.FIELDS, QueryIndex.QueryBuilder, QueryIndex.QueryCollector, QueryIndex.QueryTermFilter -
Field Summary
FieldsFields inherited from class org.apache.lucene.monitor.QueryIndex
decomposer, listeners, manager, serializer, termFilters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidclear()voidclose()voidcommit(List<MonitorQuery> updates) voiddeleteQueries(List<String> ids) longintnumDocs()void(package private) voidpurgeCache(QueryIndex.CachePopulator populator) longsearch(QueryIndex.QueryBuilder queryBuilder, QueryIndex.QueryCollector matcher) Methods inherited from class org.apache.lucene.monitor.QueryIndex
addListener, getQuery, scan, search
-
Field Details
-
refreshExecutor
-
-
Constructor Details
-
ReadonlyQueryIndex
- Throws:
IOException
-
-
Method Details
-
commit
- Specified by:
commitin classQueryIndex- Throws:
IOException
-
search
public long search(QueryIndex.QueryBuilder queryBuilder, QueryIndex.QueryCollector matcher) throws IOException - Specified by:
searchin classQueryIndex- Throws:
IOException
-
purgeCache
- Specified by:
purgeCachein classQueryIndex- Throws:
IOException
-
purgeCache
- Specified by:
purgeCachein classQueryIndex
-
close
- Throws:
IOException
-
numDocs
- Specified by:
numDocsin classQueryIndex- Throws:
IOException
-
cacheSize
public int cacheSize()- Specified by:
cacheSizein classQueryIndex
-
deleteQueries
- Specified by:
deleteQueriesin classQueryIndex- Throws:
IOException
-
clear
- Specified by:
clearin classQueryIndex- Throws:
IOException
-
getLastPurged
public long getLastPurged()- Specified by:
getLastPurgedin classQueryIndex
-