You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by md...@apache.org on 2012/04/03 12:48:12 UTC
svn commit: r1308813 -
/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStateEditor.java
Author: mduerig
Date: Tue Apr 3 10:48:12 2012
New Revision: 1308813
URL: http://svn.apache.org/viewvc?rev=1308813&view=rev
Log:
OAK-9: Internal tree builder
javadoc, comment, todos
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStateEditor.java
Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStateEditor.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStateEditor.java?rev=1308813&r1=1308812&r2=1308813&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStateEditor.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/KernelNodeStateEditor.java Tue Apr 3 10:48:12 2012
@@ -34,6 +34,19 @@ import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
+/**
+ * This {@code NodeStateEditor} implementation accumulates all changes into a json diff
+ * and applies them to the microkernel on
+ * {@link org.apache.jackrabbit.mk.model.NodeStore#merge(NodeStateEditor, NodeState)}.
+ *
+ * TODO: review/rewrite when OAK-45 is resolved
+ * When the MicroKernel has support for branching and merging private working copies,
+ * this implementation could:
+ * - directly write every operation through to the private working copy
+ * - batch write operations through to the private working copy when the
+ * transient space gets too big.
+ * - spool write operations through to the private working copy on a background thread
+ */
public class KernelNodeStateEditor implements NodeStateEditor {
private final NodeState base;
private final String path;