jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1139898 - /incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/DatasetBuilderTxn.java
Date Sun, 26 Jun 2011 18:19:14 GMT
Author: andy
Date: Sun Jun 26 18:19:14 2011
New Revision: 1139898

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

Modified:
    incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/DatasetBuilderTxn.java

Modified: incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/DatasetBuilderTxn.java
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/DatasetBuilderTxn.java?rev=1139898&r1=1139897&r2=1139898&view=diff
==============================================================================
--- incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/DatasetBuilderTxn.java
(original)
+++ incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/DatasetBuilderTxn.java
Sun Jun 26 18:19:14 2011
@@ -6,9 +6,12 @@
 
 package com.hp.hpl.jena.tdb.transaction ;
 
+import java.util.HashMap ;
+import java.util.Map ;
 import java.util.Properties ;
 
 import org.openjena.atlas.lib.FileOps ;
+import org.openjena.atlas.logging.Log ;
 import setup.BlockMgrBuilder ;
 import setup.DatasetBuilderStd ;
 import setup.IndexBuilder ;
@@ -107,7 +110,7 @@ public class DatasetBuilderTxn extends D
     }
 
     @Override
-    public DatasetGraphTDB build(Location location, Properties config)
+    protected DatasetGraphTDB _build(Location location, Properties config)
     {
         this.location = location ;
         this.txn = txnMgr.createTransaction() ;
@@ -131,6 +134,11 @@ public class DatasetBuilderTxn extends D
     private Journal  journal ;
     private Transaction txn ;
     private Location location ;
+    private Map<FileRef, BlockMgr> blockMgrs = new HashMap<FileRef, BlockMgr>()
;
+    
+    
+    // *** TODO NodTbale has cachign over this ==> broken.
+    private Map<FileRef, ObjectFile> objectFile = new HashMap<FileRef, ObjectFile>()
;
 
     class ObjectFileBuilderTx implements ObjectFileBuilder
     {
@@ -154,6 +162,12 @@ public class DatasetBuilderTxn extends D
                 String fn = FileOps.basename(fileSet.filename(ext)) ;
                 objFile = new ObjectFileLogger(fn, objFile) ;
             }
+            
+            { 
+                FileRef fileref = FileRef.create(fileSet, ext) ;
+                Log.info(DatasetBuilderTxn.class, "ObjectFile: "+fileref) ;
+            }
+            
             return objFile ;
         }
     }
@@ -168,6 +182,12 @@ public class DatasetBuilderTxn extends D
             FileRef ref = FileRef.create(fileSet.filename(ext)) ;
             BlockMgrJournal blkMg = new BlockMgrJournal(txn, ref, baseMgr, journal) ;
             // [TxTDB:TODO]
+            
+            { 
+                FileRef fileref = FileRef.create(fileSet, ext) ;
+                Log.info(DatasetBuilderTxn.class, "BlockMgr: "+fileref) ;
+            }
+            
             return blkMg ;
         }
     }



Mime
View raw message