public class NRTIndex extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
static String |
NRT_DIR_PREFIX
Prefix used for naming the directory created for NRT indexes
|
Constructor and Description |
---|
NRTIndex(IndexDefinition definition,
IndexCopier indexCopier,
org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.IndexUpdateListener refreshPolicy,
@Nullable NRTIndex previous,
org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider,
org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.NRTDirectoryFactory directoryFactory,
boolean assertAllReadersClosed) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
disconnectPrevious()
Disconnects the previous reader used by this NRTIndex.
|
static String |
generateDirName() |
List<LuceneIndexReader> |
getReaders()
Returns the list of LuceneIndexReader.
|
ReaderRefreshPolicy |
getRefreshPolicy() |
LuceneIndexWriter |
getWriter() |
boolean |
isClosed() |
String |
toString() |
public static final String NRT_DIR_PREFIX
public NRTIndex(IndexDefinition definition, IndexCopier indexCopier, org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.IndexUpdateListener refreshPolicy, @Nullable @Nullable NRTIndex previous, org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider, org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.NRTDirectoryFactory directoryFactory, boolean assertAllReadersClosed)
public LuceneIndexWriter getWriter() throws IOException
IOException
public List<LuceneIndexReader> getReaders()
public ReaderRefreshPolicy getRefreshPolicy()
public void disconnectPrevious()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public boolean isClosed()
public static String generateDirName()
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.