- 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 interface
QueryIndex.CachePopulator
static class
QueryIndex.DataValues
(package private) static class
QueryIndex.FIELDS
(package private) static interface
QueryIndex.QueryBuilder
static interface
QueryIndex.QueryCollector
(package private) static class
QueryIndex.QueryTermFilter
-
Field Summary
Fields Modifier and Type Field Description protected QueryDecomposer
decomposer
protected java.util.List<MonitorUpdateListener>
listeners
protected SearcherManager
manager
protected MonitorQuerySerializer
serializer
(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 void
addListener(MonitorUpdateListener listener)
abstract int
cacheSize()
(package private) abstract void
clear()
(package private) abstract void
commit(java.util.List<MonitorQuery> updates)
(package private) abstract void
deleteQueries(java.util.List<java.lang.String> ids)
abstract long
getLastPurged()
MonitorQuery
getQuery(java.lang.String queryId)
(package private) abstract int
numDocs()
abstract void
purgeCache()
(package private) abstract void
purgeCache(QueryIndex.CachePopulator populator)
void
scan(QueryIndex.QueryCollector matcher)
(package private) abstract long
search(QueryIndex.QueryBuilder queryBuilder, QueryIndex.QueryCollector matcher)
(package private) long
search(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)
-
-