directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1606014 - /directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeBrowseTest.java
Date Fri, 27 Jun 2014 10:14:34 GMT
Author: elecharny
Date: Fri Jun 27 10:14:34 2014
New Revision: 1606014

URL: http://svn.apache.org/r1606014
Log:
Added some commented test for free page management

Modified:
    directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeBrowseTest.java

Modified: directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeBrowseTest.java
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeBrowseTest.java?rev=1606014&r1=1606013&r2=1606014&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeBrowseTest.java
(original)
+++ directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeBrowseTest.java
Fri Jun 27 10:14:34 2014
@@ -76,6 +76,7 @@ public class PersistedBTreeBrowseTest
         {
             // Create a new BTree which allows duplicate values
             btree = recordManager1.addBTree( "test", LongSerializer.INSTANCE, StringSerializer.INSTANCE,
true );
+            //btree.setPageSize( 4 );
         }
         catch ( Exception e )
         {
@@ -1103,4 +1104,36 @@ public class PersistedBTreeBrowseTest
             }
         }
     }
+    
+    
+    /*
+    @Test
+    public void testAdd20Random() throws IOException, BTreeAlreadyManagedException, KeyNotFoundException
+    {
+        long [] values = new long[]
+            { 
+                14,  7, 43, 37, 49,  3, 20, 26, 17, 29, 
+                40, 33, 21, 18,  9, 30, 45, 36, 12,  8
+            };
+    
+        // Inject some data
+        for ( long value : values )
+        {
+            btree.insert( value, Long.toString( value ) );
+            System.out.println( btree );
+        }
+
+
+        BTree copiedPagesBtree = recordManager1.copiedPageBtree;
+        
+        System.out.println( copiedPagesBtree );
+        
+        TupleCursor<Long, String> cursor = btree.browse();
+        
+        while ( cursor.hasNext() )
+        {
+            System.out.println( cursor.nextKey() );
+        }
+    }
+    */
 }
\ No newline at end of file



Mime
View raw message