@Override @CheckForNull public Editor childNodeChanged( String name, NodeState before, NodeState after) throws CommitFailedException { if (!isHidden(name)) { return wrap(editor.childNodeChanged(name, before, after)); } else { return null; } }
@Override @CheckForNull public Editor childNodeDeleted(String name, NodeState before) throws CommitFailedException { if (!isHidden(name)) { return wrap(editor.childNodeDeleted(name, before)); } else { return null; } }
@Override @Nullable public Editor childNodeAdded(String name, NodeState after) throws CommitFailedException { if (!isHidden(name)) { return wrap(editor.childNodeAdded(name, after)); } else { return null; } }
@Override @Nullable public Editor childNodeChanged( String name, NodeState before, NodeState after) throws CommitFailedException { if (!isHidden(name)) { return wrap(editor.childNodeChanged(name, before, after)); } else { return null; } }
@Override @Nullable public Editor childNodeDeleted(String name, NodeState before) throws CommitFailedException { if (!isHidden(name)) { return wrap(editor.childNodeDeleted(name, before)); } else { return null; } }
@Override @CheckForNull public Editor childNodeAdded(String name, NodeState after) throws CommitFailedException { if (!isHidden(name)) { return wrap(editor.childNodeAdded(name, after)); } else { return null; } }
@Override @Nullable public Editor getRootEditor( NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) { IndexUpdate editor = new IndexUpdate(provider, async, after, builder, NOOP_CALLBACK, NodeTraversalCallback.NOOP, info, corruptIndexHandler) .withMissingProviderStrategy(missingStrategy); editor.setIgnoreReindexFlags(ignoreReindexFlags); return VisibleEditor.wrap(editor); }
@Override @CheckForNull public Editor getRootEditor( NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) { IndexUpdate editor = new IndexUpdate(provider, async, after, builder, NOOP_CALLBACK, NodeTraversalCallback.NOOP, info, corruptIndexHandler) .withMissingProviderStrategy(missingStrategy); editor.setIgnoreReindexFlags(ignoreReindexFlags); return VisibleEditor.wrap(editor); }
@Override @Nullable public Editor getRootEditor( NodeState before, NodeState after, NodeBuilder builder, CommitInfo info) { IndexUpdate editor = new IndexUpdate(provider, async, after, builder, NOOP_CALLBACK, NodeTraversalCallback.NOOP, info, corruptIndexHandler) .withMissingProviderStrategy(missingStrategy); editor.setIgnoreReindexFlags(ignoreReindexFlags); return VisibleEditor.wrap(editor); }
@Override public void enter(NodeState before, NodeState after) throws CommitFailedException { rootState.nodeRead(this); collectIndexEditors(builder.getChildNode(INDEX_DEFINITIONS_NAME), before); if (!reindex.isEmpty()) { log.info("Reindexing will be performed for following indexes: {}", reindex.keySet()); rootState.progressReporter.reindexingTraversalStart(getPath()); } // no-op when reindex is empty CommitFailedException exception = process( wrap(wrapProgress(compose(reindex.values()))), MISSING_NODE, after); rootState.progressReporter.reindexingTraversalEnd(); if (exception != null) { throw exception; } for (Editor editor : editors) { editor.enter(before, after); } }
@Override public void enter(NodeState before, NodeState after) throws CommitFailedException { rootState.nodeRead(this); collectIndexEditors(builder.getChildNode(INDEX_DEFINITIONS_NAME), before); if (!reindex.isEmpty()) { log.info("Reindexing will be performed for following indexes: {}", reindex.keySet()); rootState.progressReporter.reindexingTraversalStart(getPath()); } // no-op when reindex is empty CommitFailedException exception = process( wrap(wrapProgress(compose(reindex.values()))), MISSING_NODE, after); rootState.progressReporter.reindexingTraversalEnd(); if (exception != null) { throw exception; } for (Editor editor : editors) { editor.enter(before, after); } }
@Override public void enter(NodeState before, NodeState after) throws CommitFailedException { rootState.nodeRead(this); collectIndexEditors(builder.getChildNode(INDEX_DEFINITIONS_NAME), before); if (!reindex.isEmpty()) { log.info("Reindexing will be performed for following indexes: {}", reindex.keySet()); rootState.progressReporter.reindexingTraversalStart(getPath()); } // no-op when reindex is empty CommitFailedException exception = process( wrap(wrapProgress(compose(reindex.values()))), MISSING_NODE, after); rootState.progressReporter.reindexingTraversalEnd(); if (exception != null) { throw exception; } for (Editor editor : editors) { editor.enter(before, after); } }
EditorDiff.process(VisibleEditor.wrap(indexUpdate), before, after);
EditorDiff.process(VisibleEditor.wrap(indexUpdate), before, after);
EditorDiff.process(VisibleEditor.wrap(indexUpdate), before, after);
configureRateEstimator(indexUpdate); CommitFailedException exception = EditorDiff.process(VisibleEditor.wrap(indexUpdate), before, after); if (exception != null) { throw exception;
configureRateEstimator(indexUpdate); CommitFailedException exception = EditorDiff.process(VisibleEditor.wrap(indexUpdate), before, after); if (exception != null) { throw exception;
configureRateEstimator(indexUpdate); CommitFailedException exception = EditorDiff.process(VisibleEditor.wrap(indexUpdate), before, after); if (exception != null) { throw exception;