test_class.declarator: hook = new EditorHook(new IndexUpdateProvider(
          new OrderedPropertyIndexEditorProvider()))
test_class.modifier: private final
test_class.original_string: private final CommitHook hook = new EditorHook(new IndexUpdateProvider(
          new OrderedPropertyIndexEditorProvider()));
test_class.type: CommitHook
test_class.var_name: hook
test_class.declarator: custom = LogCustomizer
          .forLogger(OrderedPropertyIndexEditorProvider.class.getName()).enable(Level.WARN).create()
test_class.modifier: private final
test_class.original_string: private final LogCustomizer custom = LogCustomizer
          .forLogger(OrderedPropertyIndexEditorProvider.class.getName()).enable(Level.WARN).create();
test_class.type: LogCustomizer
test_class.var_name: custom
test_class.declarator: indexName = "mickey"
test_class.modifier: private final
test_class.original_string: private final String indexName = "mickey";
test_class.type: String
test_class.var_name: indexName
test_class.declarator: indexedProperty = "mouse"
test_class.modifier: private final
test_class.original_string: private final String indexedProperty = "mouse";
test_class.type: String
test_class.var_name: indexedProperty
test_class.declarator: DEPRECATION_MESSAGE = OrderedIndex.DEPRECATION_MESSAGE.replace("{}",
              "/" + INDEX_DEFINITIONS_NAME + "/" + indexName)
test_class.modifier: private final
test_class.original_string: private final String DEPRECATION_MESSAGE = OrderedIndex.DEPRECATION_MESSAGE.replace("{}",
              "/" + INDEX_DEFINITIONS_NAME + "/" + indexName);
test_class.type: String
test_class.var_name: DEPRECATION_MESSAGE
test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/property/OrderedPropertyIndexEditorProviderTest.java
test_class.identifier: OrderedPropertyIndexEditorProviderTest
test_case.body: @Test
      public void withIndexMultipleNodes() throws RepositoryException, CommitFailedException {
          final int threshold = 5;
          final int nodes = 16;
          final int traces = 1 + (nodes - 1) / threshold;
          OrderedPropertyIndexEditorProvider.setThreshold(threshold);
          final List<String> expected = Collections.nCopies(traces, DEPRECATION_MESSAGE);
          NodeBuilder root = EMPTY_NODE.builder();
          createIndexDef(root);
  
          custom.starting();
          for (int i = 0; i < nodes; i++) {
              NodeState before = root.getNodeState();
              root.child("n" + i).setProperty(indexedProperty, "dead" + i);
              NodeState after = root.getNodeState();
              root = hook.processCommit(before, after, CommitInfo.EMPTY).builder();
          }
          
          assertThat(custom.getLogs(), is(expected));
          custom.finished();
          assertFalse(root.getChildNode(INDEX_DEFINITIONS_NAME).getChildNode(indexName)
              .getChildNode(INDEX_CONTENT_NODE_NAME).exists());
      }
test_case.class_method_signature: OrderedPropertyIndexEditorProviderTest.withIndexMultipleNodes()
test_case.full_signature: @Test public void withIndexMultipleNodes()
test_case.identifier: withIndexMultipleNodes
test_case.invocations: setThreshold nCopies builder createIndexDef starting getNodeState setProperty child getNodeState builder processCommit assertThat getLogs is finished assertFalse exists getChildNode getChildNode getChildNode
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void withIndexMultipleNodes()
focal_class.declarator: LOG = LoggerFactory.getLogger(OrderedPropertyIndexEditorProvider.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(OrderedPropertyIndexEditorProvider.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: hits
focal_class.modifier: private
focal_class.original_string: private int hits;
focal_class.type: int
focal_class.var_name: hits
focal_class.declarator: threshold = OrderedIndex.TRACK_DEPRECATION_EVERY
focal_class.modifier: private static
focal_class.original_string: private static int threshold = OrderedIndex.TRACK_DEPRECATION_EVERY;
focal_class.type: int
focal_class.var_name: threshold
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/OrderedPropertyIndexEditorProvider.java
focal_class.identifier: OrderedPropertyIndexEditorProvider
focal_class.interfaces: implements IndexEditorProvider, OrderedIndex
focal_class.class_method_signature: OrderedPropertyIndexEditorProvider.getIndexEditor(@NotNull String type, 
                                  @NotNull NodeBuilder definition, 
                                  @NotNull NodeState root, 
                                  @NotNull IndexUpdateCallback callback)
focal_class.full_signature: @Override @Nullable public Editor getIndexEditor(@NotNull String type, 
                                  @NotNull NodeBuilder definition, 
                                  @NotNull NodeState root, 
                                  @NotNull IndexUpdateCallback callback)
focal_class.identifier: getIndexEditor
focal_class.modifiers: @Override @Nullable public
focal_class.parameters: (@NotNull String type, 
                                  @NotNull NodeBuilder definition, 
                                  @NotNull NodeState root, 
                                  @NotNull IndexUpdateCallback callback)
focal_class.return: Editor
focal_class.signature: Editor getIndexEditor(@NotNull String type, 
                                  @NotNull NodeBuilder definition, 
                                  @NotNull NodeState root, 
                                  @NotNull IndexUpdateCallback callback)
focal_class.class_method_signature: OrderedPropertyIndexEditorProvider.hit()
focal_class.full_signature: private synchronized int hit()
focal_class.identifier: hit
focal_class.modifiers: private synchronized
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hit()
focal_class.class_method_signature: OrderedPropertyIndexEditorProvider.setThreshold(int t)
focal_class.full_signature: static void setThreshold(int t)
focal_class.identifier: setThreshold
focal_class.modifiers: static
focal_class.parameters: (int t)
focal_class.return: void
focal_class.signature: void setThreshold(int t)
focal_method.body: static void setThreshold(int t) {
         threshold = t;
     }
focal_method.class_method_signature: OrderedPropertyIndexEditorProvider.setThreshold(int t)
focal_method.full_signature: static void setThreshold(int t)
focal_method.identifier: setThreshold
focal_method.modifiers: static
focal_method.parameters: (int t)
focal_method.return: void
focal_method.signature: void setThreshold(int t)