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() |
NRTIndex |
createIndex(IndexDefinition 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)
@CheckForNull public NRTIndex createIndex(IndexDefinition definition)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void setDirectoryFactory(org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.NRTDirectoryFactory directoryFactory)
public void setAssertAllResourcesClosed(boolean assertAllResourcesClosed)
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.