directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1375964 - /directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndex.java
Date Wed, 22 Aug 2012 09:58:05 GMT
Author: elecharny
Date: Wed Aug 22 09:58:05 2012
New Revision: 1375964

URL: http://svn.apache.org/viewvc?rev=1375964&view=rev
Log:
Removed methods that are already present in the parent class

Modified:
    directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndex.java

Modified: directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndex.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndex.java?rev=1375964&r1=1375963&r2=1375964&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndex.java
(original)
+++ directory/apacheds/trunk/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndex.java
Wed Aug 22 09:58:05 2012
@@ -106,7 +106,7 @@ public class JdbmRdnIndex<E> extends Jdb
 
         // finally write a text file in the format <OID>-<attribute-name>.txt
         FileWriter fw = new FileWriter( new File( path + "-" + attributeType.getName() +
".txt" ) );
-        
+
         // write the AttributeType description
         fw.write( attributeType.toString() );
         fw.close();
@@ -141,37 +141,4 @@ public class JdbmRdnIndex<E> extends Jdb
         reverse = new JdbmTable<Long, ParentIdAndRdn<Long>>( schemaManager, attributeType.getOid()
+ REVERSE_BTREE,
             recMan, LongComparator.INSTANCE, LongSerializer.INSTANCE, null );
     }
-
-
-    public void add( ParentIdAndRdn<Long> rdn, Long entryId ) throws Exception
-    {
-        forward.put( rdn, entryId );
-        reverse.put( entryId, rdn );
-    }
-
-
-    public void drop( Long entryId ) throws Exception
-    {
-        ParentIdAndRdn<Long> rdn = reverse.get( entryId );
-        forward.remove( rdn );
-        reverse.remove( entryId );
-    }
-
-
-    public void drop( ParentIdAndRdn<Long> rdn, Long id ) throws Exception
-    {
-        long val = forward.get( rdn );
-        
-        if ( val == id )
-        {
-            forward.remove( rdn );
-            reverse.remove( val );
-        }
-    }
-
-
-    public ParentIdAndRdn<Long> getNormalized( ParentIdAndRdn<Long> rdn ) throws
Exception
-    {
-        return rdn;
-    }
 }



Mime
View raw message