You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2012/06/10 20:46:21 UTC

svn commit: r1348642 - /jena/Scratch/AFS/Jena-Dev/trunk/src/tx/NodeTableTrans99.java

Author: andy
Date: Sun Jun 10 18:46:21 2012
New Revision: 1348642

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

Modified:
    jena/Scratch/AFS/Jena-Dev/trunk/src/tx/NodeTableTrans99.java

Modified: jena/Scratch/AFS/Jena-Dev/trunk/src/tx/NodeTableTrans99.java
URL: http://svn.apache.org/viewvc/jena/Scratch/AFS/Jena-Dev/trunk/src/tx/NodeTableTrans99.java?rev=1348642&r1=1348641&r2=1348642&view=diff
==============================================================================
--- jena/Scratch/AFS/Jena-Dev/trunk/src/tx/NodeTableTrans99.java (original)
+++ jena/Scratch/AFS/Jena-Dev/trunk/src/tx/NodeTableTrans99.java Sun Jun 10 18:46:21 2012
@@ -38,6 +38,13 @@ import com.hp.hpl.jena.tdb.transaction.T
 
 public class NodeTableTrans99 extends NodeTableNative
 {
+    public NodeTableTrans99(Transaction txn, String label, NodeTable sub, Index nodeIndex, ObjectFile objFile)
+    {
+        ObjectFileTrans objectsTrans = new ObjectFileTrans(txn,null/*From NodeTable*/, objFile) ;
+        Index idxTrans = BuilderTx.buildIndexTxn(txn, nodeIndex) ;
+        init(idxTrans, objectsTrans) ;
+    }
+
     /* The issue is the prepare step.
      * 
      * ObjectFileTrans -- modify to have a read-only part from original NTT and an additional part.
@@ -59,15 +66,12 @@ public class NodeTableTrans99 extends No
         static BlockMgr buildBlockMgrTxn(Transaction txn, BlockMgr blockMgr)
         {
             FileRef ref = null ;
-            // ref for label.
+            // ref for label and where to write to eventually (can find the underlying BlockMgr again from the Journal) 
             BlockMgrJournal blkMgr = new BlockMgrJournal(txn, ref, blockMgr) ;
             txn.addComponent(blkMgr) ;
             return blkMgr ;
         }
 
-        // Derived.
-        
-        
         static Index buildIndexTxn(Transaction txn, Index index)
         {
             if ( ! ( index instanceof RangeIndex ) )
@@ -104,18 +108,6 @@ public class NodeTableTrans99 extends No
 
     }
     
-    public NodeTableTrans99(Transaction txn, String label, NodeTable sub, Index nodeIndex, ObjectFile objFile)
-    {
-        ObjectFileTrans objectsTrans = new ObjectFileTrans(txn,null/*From NodeTable*/, objFile) ;
-        BlockMgr blkMgr1 = null ;
-        BlockMgr blkMgr2 = null ;
-        Index idx = null ;
-        
-        NodeTable nt = new NodeTableNative(nodeIndex, objectsTrans) ;
-        
-        // Assume the NodeTable is transactional?
-    }
-    
     static class BlockMgrBuilderX implements BlockMgrBuilder
     {
         // TODO