|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.index.IndexReader
org.apache.lucene.index.CompositeReader
org.apache.lucene.index.BaseCompositeReader<org.apache.lucene.index.AtomicReader>
org.apache.lucene.index.DirectoryReader
org.apache.lucene.index.FilterDirectoryReader
org.apache.blur.index.ExitableReader
public class ExitableReader
The DirectoryReader
wraps a real index DirectoryReader
and
allows for a AtomicBoolean
to be checked periodically to see if the
thread should exit or not. The exit mechanism is by throw a
ExitableReader.ExitingReaderException
exception.
Nested Class Summary | |
---|---|
static class |
ExitableReader.ExitableFields
|
static class |
ExitableReader.ExitableFilterAtomicReader
|
static class |
ExitableReader.ExitableSubReaderWrapper
|
static class |
ExitableReader.ExitableTerms
|
static class |
ExitableReader.ExitableTermsEnum
|
static class |
ExitableReader.ExitingReaderException
|
Nested classes/interfaces inherited from class org.apache.lucene.index.FilterDirectoryReader |
---|
org.apache.lucene.index.FilterDirectoryReader.StandardReaderWrapper, org.apache.lucene.index.FilterDirectoryReader.SubReaderWrapper |
Nested classes/interfaces inherited from class org.apache.lucene.index.IndexReader |
---|
org.apache.lucene.index.IndexReader.ReaderClosedListener |
Field Summary |
---|
Fields inherited from class org.apache.lucene.index.DirectoryReader |
---|
DEFAULT_TERMS_INDEX_DIVISOR |
Constructor Summary | |
---|---|
ExitableReader(org.apache.lucene.index.DirectoryReader in)
|
|
ExitableReader(org.apache.lucene.index.DirectoryReader in,
ExitObject exitObject)
|
Method Summary | |
---|---|
java.util.concurrent.atomic.AtomicBoolean |
getRunning()
|
void |
reset()
|
void |
setRunning(java.util.concurrent.atomic.AtomicBoolean running)
|
String |
toString()
|
Methods inherited from class org.apache.lucene.index.FilterDirectoryReader |
---|
getIndexCommit, getVersion, isCurrent |
Methods inherited from class org.apache.lucene.index.DirectoryReader |
---|
directory, indexExists, listCommits, open, open, open, open, open, openIfChanged, openIfChanged, openIfChanged |
Methods inherited from class org.apache.lucene.index.BaseCompositeReader |
---|
docFreq, document, getDocCount, getSumDocFreq, getSumTotalTermFreq, getTermVectors, maxDoc, numDocs, totalTermFreq |
Methods inherited from class org.apache.lucene.index.CompositeReader |
---|
getContext |
Methods inherited from class org.apache.lucene.index.IndexReader |
---|
addReaderClosedListener, close, decRef, document, document, equals, getCombinedCoreAndDeletesKey, getCoreCacheKey, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, numDeletedDocs, registerParentReader, removeReaderClosedListener, tryIncRef |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExitableReader(org.apache.lucene.index.DirectoryReader in)
public ExitableReader(org.apache.lucene.index.DirectoryReader in, ExitObject exitObject)
Method Detail |
---|
public java.util.concurrent.atomic.AtomicBoolean getRunning()
public void setRunning(java.util.concurrent.atomic.AtomicBoolean running)
public void reset()
public String toString()
toString
in class org.apache.lucene.index.CompositeReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |