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 |
---|
PerDirectoryLatestReader(org.apache.lucene.store.Directory directory) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.index.DirectoryReader |
refreshAndGet()
Gets an updated IndexReader for the current Directory;
the index status will be checked.
|
public SharingBufferReaderProvider.ReaderUsagePair current
public 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–2016 Hibernate. All rights reserved.