You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2010/04/27 15:45:23 UTC
svn commit: r938452 - in /directory/apacheds/trunk:
avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/
jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/
xdbm-base/src/main/java/org/apache/dire...
Author: kayyagari
Date: Tue Apr 27 13:45:23 2010
New Revision: 938452
URL: http://svn.apache.org/viewvc?rev=938452&view=rev
Log:
added a method to find if duplicate keys are supported by the index
Modified:
directory/apacheds/trunk/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlIndex.java
directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java
directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/GenericIndex.java
directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/Index.java
Modified: directory/apacheds/trunk/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlIndex.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlIndex.java?rev=938452&r1=938451&r2=938452&view=diff
==============================================================================
--- directory/apacheds/trunk/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlIndex.java (original)
+++ directory/apacheds/trunk/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlIndex.java Tue Apr 27 13:45:23 2010
@@ -469,6 +469,15 @@ public class AvlIndex<K, O> implements I
/**
* {@inheritDoc}
*/
+ public boolean isDupsEnabled()
+ {
+ return reverse.isDupsEnabled();
+ }
+
+
+ /**
+ * {@inheritDoc}
+ */
public void sync() throws Exception
{
}
Modified: directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java?rev=938452&r1=938451&r2=938452&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java (original)
+++ directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java Tue Apr 27 13:45:23 2010
@@ -702,6 +702,15 @@ public class JdbmIndex<K, O> implements
/**
+ * {@inheritDoc}
+ */
+ public boolean isDupsEnabled()
+ {
+ return reverse.isDupsEnabled();
+ }
+
+
+ /**
* @see Object#toString()
*/
public String toString()
Modified: directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/GenericIndex.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/GenericIndex.java?rev=938452&r1=938451&r2=938452&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/GenericIndex.java (original)
+++ directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/GenericIndex.java Tue Apr 27 13:45:23 2010
@@ -306,4 +306,12 @@ public class GenericIndex<K, O, ID> impl
throw new UnsupportedOperationException();
}
+
+ /**
+ * {@inheritDoc}
+ */
+ public boolean isDupsEnabled()
+ {
+ return false;
+ }
}
Modified: directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/Index.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/Index.java?rev=938452&r1=938451&r2=938452&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/Index.java (original)
+++ directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/Index.java Tue Apr 27 13:45:23 2010
@@ -258,4 +258,12 @@ public interface Index<K, O, ID>
void sync() throws Exception;
+
+
+ /**
+ * tells whether the Index implementation supports storing duplicate keys
+ *
+ * @return true if duplicate keys are allowed false otherwise
+ */
+ boolean isDupsEnabled();
}