test_class.declarator: temporaryFolder = new TemporaryFolder(new File("target"))
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public TemporaryFolder temporaryFolder = new TemporaryFolder(new File("target"));
test_class.type: TemporaryFolder
test_class.var_name: temporaryFolder
test_class.declarator: root = INITIAL_CONTENT
test_class.modifier: private
test_class.original_string: private NodeState root = INITIAL_CONTENT;
test_class.type: NodeState
test_class.var_name: root
test_class.declarator: builder = root.builder()
test_class.modifier: private
test_class.original_string: private NodeBuilder builder = root.builder();
test_class.type: NodeBuilder
test_class.var_name: builder
test_class.declarator: indexCopier
test_class.modifier: private
test_class.original_string: private IndexCopier indexCopier;
test_class.type: IndexCopier
test_class.var_name: indexCopier
test_class.declarator: indexFactory
test_class.modifier: private
test_class.original_string: private NRTIndexFactory indexFactory;
test_class.type: NRTIndexFactory
test_class.var_name: indexFactory
test_class.file: oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/hybrid/NRTIndexFactoryTest.java
test_class.identifier: NRTIndexFactoryTest
test_case.body: @Test
      public void noIndexForAsync() throws Exception{
          LuceneIndexDefinition idxDefn = new LuceneIndexDefinition(root, builder.getNodeState(), "/foo");
          assertNull(indexFactory.createIndex(idxDefn));
      }
test_case.class_method_signature: NRTIndexFactoryTest.noIndexForAsync()
test_case.full_signature: @Test public void noIndexForAsync()
test_case.identifier: noIndexForAsync
test_case.invocations: getNodeState assertNull createIndex
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void noIndexForAsync()
focal_class.declarator: MAX_INDEX_COUNT = 3
focal_class.modifier: private static final
focal_class.original_string: private static final int MAX_INDEX_COUNT = 3;
focal_class.type: int
focal_class.var_name: MAX_INDEX_COUNT
focal_class.declarator: REFRESH_DELTA_IN_SECS = Integer.getInteger("oak.lucene.refreshDeltaSecs", 1)
focal_class.modifier: private static final
focal_class.original_string: private static final int REFRESH_DELTA_IN_SECS = Integer.getInteger("oak.lucene.refreshDeltaSecs", 1);
focal_class.type: int
focal_class.var_name: REFRESH_DELTA_IN_SECS
focal_class.declarator: log = LoggerFactory.getLogger(getClass())
focal_class.modifier: private final
focal_class.original_string: private final Logger log = LoggerFactory.getLogger(getClass());
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: indexes = LinkedListMultimap.create()
focal_class.modifier: private final
focal_class.original_string: private final ListMultimap<String, NRTIndex> indexes = LinkedListMultimap.create();
focal_class.type: ListMultimap<String, NRTIndex>
focal_class.var_name: indexes
focal_class.declarator: indexCopier
focal_class.modifier: private final
focal_class.original_string: private final IndexCopier indexCopier;
focal_class.type: IndexCopier
focal_class.var_name: indexCopier
focal_class.declarator: clock
focal_class.modifier: private final
focal_class.original_string: private final Clock clock;
focal_class.type: Clock
focal_class.var_name: clock
focal_class.declarator: refreshDeltaInSecs
focal_class.modifier: private final
focal_class.original_string: private final long refreshDeltaInSecs;
focal_class.type: long
focal_class.var_name: refreshDeltaInSecs
focal_class.declarator: statisticsProvider
focal_class.modifier: private final
focal_class.original_string: private final StatisticsProvider statisticsProvider;
focal_class.type: StatisticsProvider
focal_class.var_name: statisticsProvider
focal_class.declarator: directoryFactory = DefaultNRTDirFactory.INSTANCE
focal_class.modifier: private
focal_class.original_string: private NRTDirectoryFactory directoryFactory = DefaultNRTDirFactory.INSTANCE;
focal_class.type: NRTDirectoryFactory
focal_class.var_name: directoryFactory
focal_class.declarator: assertAllResourcesClosed = Boolean.getBoolean("oak.lucene.assertAllResourcesClosed")
focal_class.modifier: private
focal_class.original_string: private boolean assertAllResourcesClosed = Boolean.getBoolean("oak.lucene.assertAllResourcesClosed");
focal_class.type: boolean
focal_class.var_name: assertAllResourcesClosed
focal_class.file: oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/hybrid/NRTIndexFactory.java
focal_class.identifier: NRTIndexFactory
focal_class.interfaces: implements Closeable
focal_class.class_method_signature: NRTIndexFactory.NRTIndexFactory(IndexCopier indexCopier, StatisticsProvider statisticsProvider)
focal_class.full_signature: public  NRTIndexFactory(IndexCopier indexCopier, StatisticsProvider statisticsProvider)
focal_class.identifier: NRTIndexFactory
focal_class.modifiers: public
focal_class.parameters: (IndexCopier indexCopier, StatisticsProvider statisticsProvider)
focal_class.signature:  NRTIndexFactory(IndexCopier indexCopier, StatisticsProvider statisticsProvider)
focal_class.class_method_signature: NRTIndexFactory.NRTIndexFactory(IndexCopier indexCopier, Clock clock, long refreshDeltaInSecs,
                             StatisticsProvider statisticsProvider)
focal_class.full_signature: public  NRTIndexFactory(IndexCopier indexCopier, Clock clock, long refreshDeltaInSecs,
                             StatisticsProvider statisticsProvider)
focal_class.identifier: NRTIndexFactory
focal_class.modifiers: public
focal_class.parameters: (IndexCopier indexCopier, Clock clock, long refreshDeltaInSecs,
                             StatisticsProvider statisticsProvider)
focal_class.signature:  NRTIndexFactory(IndexCopier indexCopier, Clock clock, long refreshDeltaInSecs,
                             StatisticsProvider statisticsProvider)
focal_class.class_method_signature: NRTIndexFactory.createIndex(LuceneIndexDefinition definition)
focal_class.full_signature: @Nullable public synchronized NRTIndex createIndex(LuceneIndexDefinition definition)
focal_class.identifier: createIndex
focal_class.modifiers: @Nullable public synchronized
focal_class.parameters: (LuceneIndexDefinition definition)
focal_class.return: NRTIndex
focal_class.signature: NRTIndex createIndex(LuceneIndexDefinition definition)
focal_class.class_method_signature: NRTIndexFactory.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: NRTIndexFactory.getIndexes(String path)
focal_class.full_signature:  List<NRTIndex> getIndexes(String path)
focal_class.identifier: getIndexes
focal_class.parameters: (String path)
focal_class.return: List<NRTIndex>
focal_class.signature: List<NRTIndex> getIndexes(String path)
focal_class.class_method_signature: NRTIndexFactory.setDirectoryFactory(NRTDirectoryFactory directoryFactory)
focal_class.full_signature: public void setDirectoryFactory(NRTDirectoryFactory directoryFactory)
focal_class.identifier: setDirectoryFactory
focal_class.modifiers: public
focal_class.parameters: (NRTDirectoryFactory directoryFactory)
focal_class.return: void
focal_class.signature: void setDirectoryFactory(NRTDirectoryFactory directoryFactory)
focal_class.class_method_signature: NRTIndexFactory.setAssertAllResourcesClosed(boolean assertAllResourcesClosed)
focal_class.full_signature: public void setAssertAllResourcesClosed(boolean assertAllResourcesClosed)
focal_class.identifier: setAssertAllResourcesClosed
focal_class.modifiers: public
focal_class.parameters: (boolean assertAllResourcesClosed)
focal_class.return: void
focal_class.signature: void setAssertAllResourcesClosed(boolean assertAllResourcesClosed)
focal_class.class_method_signature: NRTIndexFactory.closeLast(String indexPath)
focal_class.full_signature: private void closeLast(String indexPath)
focal_class.identifier: closeLast
focal_class.modifiers: private
focal_class.parameters: (String indexPath)
focal_class.return: void
focal_class.signature: void closeLast(String indexPath)
focal_class.class_method_signature: NRTIndexFactory.getPrevious(String indexPath)
focal_class.full_signature: private NRTIndex getPrevious(String indexPath)
focal_class.identifier: getPrevious
focal_class.modifiers: private
focal_class.parameters: (String indexPath)
focal_class.return: NRTIndex
focal_class.signature: NRTIndex getPrevious(String indexPath)
focal_class.class_method_signature: NRTIndexFactory.getRefreshPolicy(IndexDefinition definition)
focal_class.full_signature: private IndexUpdateListener getRefreshPolicy(IndexDefinition definition)
focal_class.identifier: getRefreshPolicy
focal_class.modifiers: private
focal_class.parameters: (IndexDefinition definition)
focal_class.return: IndexUpdateListener
focal_class.signature: IndexUpdateListener getRefreshPolicy(IndexDefinition definition)
focal_method.body: @Nullable
      public synchronized NRTIndex createIndex(LuceneIndexDefinition definition) {
          if (!(definition.isNRTIndexingEnabled() || definition.isSyncIndexingEnabled())){
              return null;
          }
          String indexPath = definition.getIndexPath();
          NRTIndex current = new NRTIndex(definition, indexCopier, getRefreshPolicy(definition),
                  getPrevious(indexPath), statisticsProvider, directoryFactory, assertAllResourcesClosed);
          indexes.put(indexPath, current);
          closeLast(indexPath);
          return current;
      }
focal_method.class_method_signature: NRTIndexFactory.createIndex(LuceneIndexDefinition definition)
focal_method.full_signature: @Nullable public synchronized NRTIndex createIndex(LuceneIndexDefinition definition)
focal_method.identifier: createIndex
focal_method.invocations: isNRTIndexingEnabled isSyncIndexingEnabled getIndexPath getRefreshPolicy getPrevious put closeLast
focal_method.modifiers: @Nullable public synchronized
focal_method.parameters: (LuceneIndexDefinition definition)
focal_method.return: NRTIndex
focal_method.signature: NRTIndex createIndex(LuceneIndexDefinition definition)