jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1419304 - in /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index: IndexHook.java IndexHookManagerDiff.java
Date Mon, 10 Dec 2012 09:55:36 GMT
Author: thomasm
Date: Mon Dec 10 09:55:36 2012
New Revision: 1419304

URL: http://svn.apache.org/viewvc?rev=1419304&view=rev
Log:
OAK-470 Documentation for the PropertyIndex

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/IndexHook.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/IndexHookManagerDiff.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/IndexHook.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/IndexHook.java?rev=1419304&r1=1419303&r2=1419304&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/IndexHook.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/IndexHook.java
Mon Dec 10 09:55:36 2012
@@ -24,7 +24,9 @@ import org.apache.jackrabbit.oak.spi.sta
 /**
  * Represents the content of a QueryIndex as well as a mechanism for keeping
  * this content up to date.
- * 
+ *<p>
+ * An IndexHook listens for changes to the content and updates the index data
+ * accordingly.
  */
 public interface IndexHook extends HierarchicalNodeStateDiff<IndexHook>,
         Closeable {
@@ -34,6 +36,12 @@ public interface IndexHook extends Hiera
      */
     void apply() throws CommitFailedException;
 
+    /**
+     * Re-create this index.
+     * 
+     * @param state the parent of the node "oak:index" (the node that contains the index
definition)
+     * @throws CommitFailedException
+     */
     void reindex(NodeBuilder state) throws CommitFailedException;
 
 }

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/IndexHookManagerDiff.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/IndexHookManagerDiff.java?rev=1419304&r1=1419303&r2=1419304&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/IndexHookManagerDiff.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/IndexHookManagerDiff.java
Mon Dec 10 09:55:36 2012
@@ -308,6 +308,7 @@ class IndexHookManagerDiff implements No
             after.compareAgainstBaseState(before, new IndexHookManagerDiff(
                     provider, this, name));
         } catch (CommitFailedException e) {
+            // TODO ignore exception - is this a hack?
             LOG.error(e.getMessage(), e);
         }
     }



Mime
View raw message