test_class.declarator: folder = new TemporaryFolder(new File("target"))
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public TemporaryFolder folder = new TemporaryFolder(new File("target"));
test_class.type: TemporaryFolder
test_class.var_name: folder
test_class.declarator: store = new MemoryNodeStore()
test_class.modifier: private
test_class.original_string: private NodeStore store = new MemoryNodeStore();
test_class.type: NodeStore
test_class.var_name: store
test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/importer/IndexDefinitionUpdaterTest.java
test_class.identifier: IndexDefinitionUpdaterTest
test_case.body: @Test
      public void applyToIndexPath() throws Exception{
          String json = "{\"/oak:index/barIndex\": {\n" +
                  "    \"compatVersion\": 2,\n" +
                  "    \"type\": \"lucene\",\n" +
                  "    \"barIndexProp\": \"barbar\",\n" +
                  "    \"async\": \"async\",\n" +
                  "    \"jcr:primaryType\": \"oak:QueryIndexDefinition\"\n" +
                  "  }}";
  
          NodeBuilder builder = store.getRoot().builder();
          builder.child("oak:index");
          store.merge(builder, EmptyHook.INSTANCE, CommitInfo.EMPTY);
  
          IndexDefinitionUpdater updater = new IndexDefinitionUpdater(json);
          builder = store.getRoot().builder();
          NodeBuilder idxBuilder = updater.apply(builder, "/oak:index/barIndex");
  
          //Check builder returned is of /oak:index/barIndex
          assertTrue(idxBuilder.hasProperty("barIndexProp"));
      }
test_case.class_method_signature: IndexDefinitionUpdaterTest.applyToIndexPath()
test_case.full_signature: @Test public void applyToIndexPath()
test_case.identifier: applyToIndexPath
test_case.invocations: builder getRoot child merge builder getRoot apply assertTrue hasProperty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void applyToIndexPath()
focal_class.declarator: INDEX_DEFINITIONS_JSON = "index-definitions.json"
focal_class.modifier: public static final
focal_class.original_string: public static final String INDEX_DEFINITIONS_JSON = "index-definitions.json";
focal_class.type: String
focal_class.var_name: INDEX_DEFINITIONS_JSON
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: indexNodeStates
focal_class.modifier: private final
focal_class.original_string: private final Map<String, NodeState> indexNodeStates;
focal_class.type: Map<String, NodeState>
focal_class.var_name: indexNodeStates
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/importer/IndexDefinitionUpdater.java
focal_class.identifier: IndexDefinitionUpdater
focal_class.class_method_signature: IndexDefinitionUpdater.IndexDefinitionUpdater(File file)
focal_class.full_signature: public  IndexDefinitionUpdater(File file)
focal_class.identifier: IndexDefinitionUpdater
focal_class.modifiers: public
focal_class.parameters: (File file)
focal_class.signature:  IndexDefinitionUpdater(File file)
focal_class.class_method_signature: IndexDefinitionUpdater.IndexDefinitionUpdater(String json)
focal_class.full_signature: public  IndexDefinitionUpdater(String json)
focal_class.identifier: IndexDefinitionUpdater
focal_class.modifiers: public
focal_class.parameters: (String json)
focal_class.signature:  IndexDefinitionUpdater(String json)
focal_class.class_method_signature: IndexDefinitionUpdater.apply(NodeBuilder rootBuilder)
focal_class.full_signature: public void apply(NodeBuilder rootBuilder)
focal_class.identifier: apply
focal_class.modifiers: public
focal_class.parameters: (NodeBuilder rootBuilder)
focal_class.return: void
focal_class.signature: void apply(NodeBuilder rootBuilder)
focal_class.class_method_signature: IndexDefinitionUpdater.apply(NodeBuilder rootBuilder, String indexPath)
focal_class.full_signature: public NodeBuilder apply(NodeBuilder rootBuilder, String indexPath)
focal_class.identifier: apply
focal_class.modifiers: public
focal_class.parameters: (NodeBuilder rootBuilder, String indexPath)
focal_class.return: NodeBuilder
focal_class.signature: NodeBuilder apply(NodeBuilder rootBuilder, String indexPath)
focal_class.class_method_signature: IndexDefinitionUpdater.getIndexPaths()
focal_class.full_signature: public Set<String> getIndexPaths()
focal_class.identifier: getIndexPaths
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Set<String>
focal_class.signature: Set<String> getIndexPaths()
focal_class.class_method_signature: IndexDefinitionUpdater.getIndexState(String indexPath)
focal_class.full_signature: public NodeState getIndexState(String indexPath)
focal_class.identifier: getIndexState
focal_class.modifiers: public
focal_class.parameters: (String indexPath)
focal_class.return: NodeState
focal_class.signature: NodeState getIndexState(String indexPath)
focal_class.class_method_signature: IndexDefinitionUpdater.getIndexDefnStates(String json)
focal_class.full_signature: private static Map<String, NodeState> getIndexDefnStates(String json)
focal_class.identifier: getIndexDefnStates
focal_class.modifiers: private static
focal_class.parameters: (String json)
focal_class.return: Map<String, NodeState>
focal_class.signature: Map<String, NodeState> getIndexDefnStates(String json)
focal_class.class_method_signature: IndexDefinitionUpdater.cloneVisibleState(NodeState state)
focal_class.full_signature: private static NodeState cloneVisibleState(NodeState state)
focal_class.identifier: cloneVisibleState
focal_class.modifiers: private static
focal_class.parameters: (NodeState state)
focal_class.return: NodeState
focal_class.signature: NodeState cloneVisibleState(NodeState state)
focal_method.body: public void apply(NodeBuilder rootBuilder) throws IOException, CommitFailedException {
          for (Map.Entry<String, NodeState> cne : indexNodeStates.entrySet()) {
              String indexPath = cne.getKey();
              apply(rootBuilder, indexPath);
          }
      }
focal_method.class_method_signature: IndexDefinitionUpdater.apply(NodeBuilder rootBuilder)
focal_method.full_signature: public void apply(NodeBuilder rootBuilder)
focal_method.identifier: apply
focal_method.invocations: entrySet getKey apply
focal_method.modifiers: public
focal_method.parameters: (NodeBuilder rootBuilder)
focal_method.return: void
focal_method.signature: void apply(NodeBuilder rootBuilder)