Package org.apache.lucene.monitor
Class QueryIndex
- java.lang.Object
-
- org.apache.lucene.monitor.QueryIndex
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
ReadonlyQueryIndex,WritableQueryIndex
abstract class QueryIndex extends java.lang.Object implements java.io.Closeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interfaceQueryIndex.CachePopulatorstatic classQueryIndex.DataValues(package private) static classQueryIndex.FIELDS(package private) static interfaceQueryIndex.QueryBuilderstatic interfaceQueryIndex.QueryCollector(package private) static classQueryIndex.QueryTermFilter
-
Field Summary
Fields Modifier and Type Field Description protected QueryDecomposerdecomposerprotected java.util.List<MonitorUpdateListener>listenersprotected SearcherManagermanagerprotected MonitorQuerySerializerserializer(package private) java.util.Map<IndexReader.CacheKey,QueryIndex.QueryTermFilter>termFilters
-
Constructor Summary
Constructors Constructor Description QueryIndex()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddListener(MonitorUpdateListener listener)abstract intcacheSize()(package private) abstract voidclear()(package private) abstract voidcommit(java.util.List<MonitorQuery> updates)(package private) abstract voiddeleteQueries(java.util.List<java.lang.String> ids)abstract longgetLastPurged()MonitorQuerygetQuery(java.lang.String queryId)(package private) abstract intnumDocs()abstract voidpurgeCache()(package private) abstract voidpurgeCache(QueryIndex.CachePopulator populator)voidscan(QueryIndex.QueryCollector matcher)(package private) abstract longsearch(QueryIndex.QueryBuilder queryBuilder, QueryIndex.QueryCollector matcher)(package private) longsearch(Query query, QueryIndex.QueryCollector matcher)
-
-
-
Field Detail
-
manager
protected SearcherManager manager
-
decomposer
protected QueryDecomposer decomposer
-
serializer
protected MonitorQuerySerializer serializer
-
termFilters
final java.util.Map<IndexReader.CacheKey,QueryIndex.QueryTermFilter> termFilters
-
listeners
protected final java.util.List<MonitorUpdateListener> listeners
-
-
Method Detail
-
commit
abstract void commit(java.util.List<MonitorQuery> updates) throws java.io.IOException
- Throws:
java.io.IOException
-
getQuery
public MonitorQuery getQuery(java.lang.String queryId) throws java.io.IOException
- Throws:
java.io.IOException
-
scan
public void scan(QueryIndex.QueryCollector matcher) throws java.io.IOException
- Throws:
java.io.IOException
-
search
long search(Query query, QueryIndex.QueryCollector matcher) throws java.io.IOException
- Throws:
java.io.IOException
-
search
abstract long search(QueryIndex.QueryBuilder queryBuilder, QueryIndex.QueryCollector matcher) throws java.io.IOException
- Throws:
java.io.IOException
-
purgeCache
public abstract void purgeCache() throws java.io.IOException- Throws:
java.io.IOException
-
purgeCache
abstract void purgeCache(QueryIndex.CachePopulator populator) throws java.io.IOException
- Throws:
java.io.IOException
-
numDocs
abstract int numDocs() throws java.io.IOException- Throws:
java.io.IOException
-
cacheSize
public abstract int cacheSize()
-
deleteQueries
abstract void deleteQueries(java.util.List<java.lang.String> ids) throws java.io.IOException- Throws:
java.io.IOException
-
clear
abstract void clear() throws java.io.IOException- Throws:
java.io.IOException
-
getLastPurged
public abstract long getLastPurged()
-
addListener
public void addListener(MonitorUpdateListener listener)
-
-