directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 47544 - incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm
Date Thu, 30 Sep 2004 03:39:05 GMT
Author: akarasulu
Date: Wed Sep 29 20:39:05 2004
New Revision: 47544

Added:
   incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmTable.java
      - copied, changed from rev 47541, incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/DefaultTable.java
Removed:
   incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/DefaultTable.java
Modified:
   incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmIndex.java
   incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmMasterTable.java
Log:
renamed DefaultTable to JdbmTable

Modified: incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmIndex.java
==============================================================================
--- incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmIndex.java
(original)
+++ incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmIndex.java
Wed Sep 29 20:39:05 2004
@@ -252,9 +252,9 @@
     /** */
     private AttributeType attribute;
     /** */
-    private DefaultTable forward = null;
+    private JdbmTable forward = null;
     /** */
-    private DefaultTable reverse = null;
+    private JdbmTable reverse = null;
     /** */
     private RecordManager recMan = null;
     /** 
@@ -337,7 +337,7 @@
          * primary keys.  A value for an attribute can occur several times in
          * different entries so the forward map can have more than one value.
          */
-        forward = new DefaultTable( attribute.getName() + FORWARD_BTREE,
+        forward = new JdbmTable( attribute.getName() + FORWARD_BTREE,
             true, recMan, new IndexComparator( comp, true ) );
         
         /*
@@ -346,7 +346,7 @@
          * is single valued according to its specification based on a schema 
          * then duplicate keys should not be allowed within the reverse table.
          */
-        reverse = new DefaultTable( attribute.getName() + REVERSE_BTREE,
+        reverse = new JdbmTable( attribute.getName() + REVERSE_BTREE,
             ! attribute.isSingleValue(), recMan, 
             new IndexComparator( comp, false ) );
     }

Modified: incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmMasterTable.java
==============================================================================
--- incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmMasterTable.java
(original)
+++ incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmMasterTable.java
Wed Sep 29 20:39:05 2004
@@ -16,10 +16,10 @@
  * The master table used to store the Attributes of entries.
  *
  */
-public class JdbmMasterTable extends DefaultTable implements MasterTable
+public class JdbmMasterTable extends JdbmTable implements MasterTable
 {
     /**  */
-    private DefaultTable adminTbl = null;
+    private JdbmTable adminTbl = null;
 
 
     /**
@@ -32,7 +32,7 @@
         throws NamingException
     {
         super( DBF, recMan, new BigIntegerComparator() );
-        adminTbl = new DefaultTable( "admin", recMan, new StringComparator() );
+        adminTbl = new JdbmTable( "admin", recMan, new StringComparator() );
         String seqValue = ( String ) adminTbl.get( SEQPROP_KEY );
         
         if ( null == seqValue ) 

Copied: incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmTable.java
(from rev 47541, incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/DefaultTable.java)
==============================================================================
--- incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/DefaultTable.java
(original)
+++ incubator/directory/eve/trunk/backend/core/src/java/org/apache/eve/db/jdbm/JdbmTable.java
Wed Sep 29 20:39:05 2004
@@ -27,9 +27,8 @@
 /**
  * A jdbm Btree wrapper that enables duplicate sorted keys using collections.
  *
- * @todo rename to JdbmTable
  */
-public class DefaultTable implements Table
+public class JdbmTable implements Table
 {
     /**  */
     private static final String SZSUFFIX = "_btree_sz";
@@ -66,7 +65,7 @@
      * @param comparator a tuple comparator
      * @throws NamingException if the table's file cannot be created
      */
-    public DefaultTable( String name, boolean allowsDuplicates,
+    public JdbmTable( String name, boolean allowsDuplicates,
         RecordManager manager, TupleComparator comparator )
         throws NamingException
     {
@@ -164,7 +163,7 @@
      * @param keyComparator a tuple comparator
      * @throws NamingException if the table's file cannot be created
      */
-    public DefaultTable( String name, RecordManager manager,
+    public JdbmTable( String name, RecordManager manager,
         Comparator keyComparator ) throws NamingException
     {
         this( name, false, manager, new KeyOnlyComparator( keyComparator ) );

Mime
View raw message