public class NRTIndexFactory extends Object implements Closeable
| Constructor and Description |
|---|
NRTIndexFactory(IndexCopier indexCopier,
org.apache.jackrabbit.oak.stats.Clock clock,
long refreshDeltaInSecs,
org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider) |
NRTIndexFactory(IndexCopier indexCopier,
org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
@Nullable NRTIndex |
createIndex(LuceneIndexDefinition definition) |
void |
setAssertAllResourcesClosed(boolean assertAllResourcesClosed)
Test mode upon which enables assertions to confirm that all readers are closed
by the time NRTIndex is closed
|
void |
setDirectoryFactory(org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.NRTDirectoryFactory directoryFactory) |
public NRTIndexFactory(IndexCopier indexCopier, org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
public NRTIndexFactory(IndexCopier indexCopier, org.apache.jackrabbit.oak.stats.Clock clock, long refreshDeltaInSecs, org.apache.jackrabbit.oak.stats.StatisticsProvider statisticsProvider)
@Nullable public @Nullable NRTIndex createIndex(LuceneIndexDefinition definition)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void setDirectoryFactory(org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.NRTDirectoryFactory directoryFactory)
public void setAssertAllResourcesClosed(boolean assertAllResourcesClosed)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.