jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1381534 - in /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query: Index.java IndexDefinition.java IndexDefinitionImpl.java
Date Thu, 06 Sep 2012 08:56:33 GMT
Author: alexparvulescu
Date: Thu Sep  6 08:56:32 2012
New Revision: 1381534

URL: http://svn.apache.org/viewvc?rev=1381534&view=rev
Log:
OAK-269 Query: IndexManager to manage existing indexes

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/Index.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/IndexDefinition.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/IndexDefinitionImpl.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/Index.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/Index.java?rev=1381534&r1=1381533&r2=1381534&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/Index.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/Index.java
Thu Sep  6 08:56:32 2012
@@ -38,33 +38,4 @@ public interface Index extends CommitHoo
     @Nonnull
     IndexDefinition getDefinition();
 
-//    /**
-//     * The given node was added or removed.
-//     *
-//     * @param node the node including (old or new) data
-//     * @param add true if added, false if removed
-//     */
-//    void addOrRemoveNode(NodeImpl node, boolean add);
-//
-//    /**
-//     * The given property was added or removed.
-//     *
-//     * @param nodePath the path of the node
-//     * @param propertyName the property name
-//     * @param value the old (when deleting) or new (when adding) value
-//     * @param add true if added, false if removed
-//     */
-//    void addOrRemoveProperty(String nodePath, String propertyName,
-//            String value, boolean add);
-//
-//    /**
-//     * Get an iterator over the paths for the given value. For unique
-//     * indexes, the iterator will contain at most one element.
-//     *
-//     * @param value the value, or null to return all indexed rows
-//     * @param revision the revision
-//     * @return an iterator of the paths (an empty iterator if not found)
-//     */
-//    Iterator<String> getPaths(String value, String revision);
-
 }

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/IndexDefinition.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/IndexDefinition.java?rev=1381534&r1=1381533&r2=1381534&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/IndexDefinition.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/IndexDefinition.java
Thu Sep  6 08:56:32 2012
@@ -45,7 +45,7 @@ public interface IndexDefinition {
     String getType();
 
     /**
-     * @return the index path, includung the name as the last segment
+     * @return the index path, including the name as the last segment
      */
     @Nonnull
     String getPath();

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/IndexDefinitionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/IndexDefinitionImpl.java?rev=1381534&r1=1381533&r2=1381534&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/IndexDefinitionImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/query/IndexDefinitionImpl.java
Thu Sep  6 08:56:32 2012
@@ -16,6 +16,7 @@
  */
 package org.apache.jackrabbit.oak.spi.query;
 
+import java.util.Collections;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -27,6 +28,10 @@ public class IndexDefinitionImpl impleme
     private final boolean unique;
     private final Map<String, String> properties;
 
+    public IndexDefinitionImpl(String name, String type, String path) {
+        this(name, type, path, false, Collections.<String, String> emptyMap());
+    }
+
     public IndexDefinitionImpl(String name, String type, String path,
             boolean unique, Map<String, String> properties) {
         this.name = name;



Mime
View raw message