|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.reader.SharingBufferReaderProvider.PerDirectoryLatestReader
protected final class SharingBufferReaderProvider.PerDirectoryLatestReader
An instance for each DirectoryProvider, establishing the association between "current" ReaderUsagePair for a DirectoryProvider and it's lock.
| Field Summary | |
|---|---|
SharingBufferReaderProvider.ReaderUsagePair |
current
Reference to the most current IndexReader for a DirectoryProvider; guarded by lockOnReplaceCurrent; |
| Constructor Summary | |
|---|---|
SharingBufferReaderProvider.PerDirectoryLatestReader(org.apache.lucene.store.Directory directory)
|
|
| Method Summary | |
|---|---|
org.apache.lucene.index.IndexReader |
refreshAndGet()
Gets an updated IndexReader for the current Directory; the index status will be checked. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public SharingBufferReaderProvider.ReaderUsagePair current
| Constructor Detail |
|---|
public SharingBufferReaderProvider.PerDirectoryLatestReader(org.apache.lucene.store.Directory directory)
throws java.io.IOException
directory - The Directory for which we manage the IndexReader.
java.io.IOException - when the index initialization fails.| Method Detail |
|---|
public org.apache.lucene.index.IndexReader refreshAndGet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||