org.hibernate.search.indexes.impl
protected final class SharingBufferReaderProvider.PerDirectoryLatestReader extends Object
Modifier and Type | Field and Description |
---|---|
SharingBufferReaderProvider.ReaderUsagePair |
current
Reference to the most current IndexReader for a DirectoryProvider;
guarded by lockOnReplaceCurrent;
|
Constructor and Description |
---|
SharingBufferReaderProvider.PerDirectoryLatestReader(org.apache.lucene.store.Directory directory) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.index.IndexReader |
refreshAndGet()
Gets an updated IndexReader for the current Directory;
the index status will be checked.
|
public SharingBufferReaderProvider.ReaderUsagePair current
public SharingBufferReaderProvider.PerDirectoryLatestReader(org.apache.lucene.store.Directory directory) throws IOException
directory
- The Directory
for which we manage the IndexReader
.IOException
- when the index initialization fails.Copyright © 2006–2015 Hibernate. All rights reserved.