jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1137924 - in /incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb: base/page/PageBlockMgr.java index/bplustree/BPTreeRecordsMgr.java transaction/BlockMgrJournal.java
Date Tue, 21 Jun 2011 10:00:48 GMT
Author: andy
Date: Tue Jun 21 10:00:48 2011
New Revision: 1137924

URL: http://svn.apache.org/viewvc?rev=1137924&view=rev
Log: (empty)

Modified:
    incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/base/page/PageBlockMgr.java
    incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/index/bplustree/BPTreeRecordsMgr.java
    incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/BlockMgrJournal.java

Modified: incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/base/page/PageBlockMgr.java
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/base/page/PageBlockMgr.java?rev=1137924&r1=1137923&r2=1137924&view=diff
==============================================================================
--- incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/base/page/PageBlockMgr.java
(original)
+++ incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/base/page/PageBlockMgr.java
Tue Jun 21 10:00:48 2011
@@ -58,13 +58,6 @@ public class PageBlockMgr<T extends Page
         T page = pageFactory.fromBlock(block) ;
         return page ;
     }
-    
-//    public T getReadIterator(int id)
-//    { 
-//        Block block = blockMgr.getReadIterator(id) ;
-//        T page = pageFactory.fromBlock(block) ;
-//        return page ;
-//    }
 
     public void put(T page)
     {

Modified: incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/index/bplustree/BPTreeRecordsMgr.java
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/index/bplustree/BPTreeRecordsMgr.java?rev=1137924&r1=1137923&r2=1137924&view=diff
==============================================================================
--- incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/index/bplustree/BPTreeRecordsMgr.java
(original)
+++ incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/index/bplustree/BPTreeRecordsMgr.java
Tue Jun 21 10:00:48 2011
@@ -32,32 +32,32 @@ final public class BPTreeRecordsMgr exte
     /** Converter BPTreeRecords -- make a RecordBufferPage and wraps it.*/ 
     static class Block2BPTreeRecords implements BlockConverter<BPTreeRecords>
     {
-        private Block2RecordBufferPage z ;
+        private Block2RecordBufferPage recordBufferConverter ;
         private BPlusTree bpTree ;
 
         Block2BPTreeRecords(BPlusTree bpTree, RecordFactory recordFactory)
         { 
             this.bpTree = bpTree ; 
-            this.z = new RecordBufferPageMgr.Block2RecordBufferPage(recordFactory) ;
+            this.recordBufferConverter = new RecordBufferPageMgr.Block2RecordBufferPage(recordFactory)
;
         }
         
         @Override
         public BPTreeRecords fromBlock(Block block)
         {
-            RecordBufferPage rbp = z.fromBlock(block) ;
+            RecordBufferPage rbp = recordBufferConverter.fromBlock(block) ;
             return new BPTreeRecords(bpTree, rbp) ;
         }
 
         @Override
         public Block toBlock(BPTreeRecords t)
         {
-            return z.toBlock(t.getRecordBufferPage()) ;
+            return recordBufferConverter.toBlock(t.getRecordBufferPage()) ;
         }
 
         @Override
         public BPTreeRecords createFromBlock(Block block, BlockType bType)
         {
-            RecordBufferPage rbp = z.createFromBlock(block, bType) ;
+            RecordBufferPage rbp = recordBufferConverter.createFromBlock(block, bType) ;
             return new BPTreeRecords(bpTree, rbp) ;
         }
     }

Modified: incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/BlockMgrJournal.java
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/BlockMgrJournal.java?rev=1137924&r1=1137923&r2=1137924&view=diff
==============================================================================
--- incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/BlockMgrJournal.java
(original)
+++ incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/BlockMgrJournal.java
Tue Jun 21 10:00:48 2011
@@ -153,7 +153,6 @@ public class BlockMgrJournal implements 
     public Block promote(Block block)
     {
         checkIfClosed() ;
-        if ( true ) throw new NotImplemented("promote=>reset") ; 
         if ( writeBlocks.containsKey(block.getId()) )
             return block ;
         return _promote(block) ;



Mime
View raw message