directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r761655 - /directory/apacheds/branches/ldif-partition/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlSingletonOrOrderedSetCursor.java
Date Fri, 03 Apr 2009 12:54:28 GMT
Author: akarasulu
Date: Fri Apr  3 12:54:28 2009
New Revision: 761655

URL: http://svn.apache.org/viewvc?rev=761655&view=rev
Log:
added methods to expose comparators which may be needed by SingletonCursors

Modified:
    directory/apacheds/branches/ldif-partition/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlSingletonOrOrderedSetCursor.java

Modified: directory/apacheds/branches/ldif-partition/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlSingletonOrOrderedSetCursor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/ldif-partition/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlSingletonOrOrderedSetCursor.java?rev=761655&r1=761654&r2=761655&view=diff
==============================================================================
--- directory/apacheds/branches/ldif-partition/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlSingletonOrOrderedSetCursor.java
(original)
+++ directory/apacheds/branches/ldif-partition/core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlSingletonOrOrderedSetCursor.java
Fri Apr  3 12:54:28 2009
@@ -20,6 +20,8 @@
 package org.apache.directory.server.core.avltree;
 
 
+import java.util.Comparator;
+
 import org.apache.directory.server.core.cursor.InvalidCursorPositionException;
 import org.apache.directory.server.xdbm.AbstractTupleCursor;
 import org.apache.directory.server.xdbm.Tuple;
@@ -45,8 +47,20 @@
     {
         this.tree = tree;
     }
+    
+    
+    public Comparator<K> getKeyComparator()
+    {
+        return tree.getKeyComparator();
+    }
 
     
+    public Comparator<V> getValuComparator()
+    {
+        return tree.getValueComparator();
+    }
+    
+    
     public void after( Tuple<K,SingletonOrOrderedSet<V>> element ) throws Exception

     {
         afterKey( element.getKey() );



Mime
View raw message