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 2011/07/08 17:51:48 UTC

svn commit: r1144367 - in /incubator/jena/Experimental/TxTDB/trunk/src-dev/tx: DevTx.java TxMain.java

Author: andy
Date: Fri Jul  8 15:51:48 2011
New Revision: 1144367

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

Modified:
    incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/DevTx.java
    incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/TxMain.java

Modified: incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/DevTx.java
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/DevTx.java?rev=1144367&r1=1144366&r2=1144367&view=diff
==============================================================================
--- incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/DevTx.java (original)
+++ incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/DevTx.java Fri Jul  8 15:51:48 2011
@@ -1,19 +1,33 @@
 package tx;
 
+
 public class DevTx
 {
+    // Tests
+    
     // NodeTable journalling and recovery
-    // 1/ Currently, NT written in commit phase, before the journal commit entry.
-    //    Safe but?
-    //    nodes.dat-jrnl, prefixed.dat-jrnl
-    // 2/ Need to scan for whether commit written or not.
     // 3/ general setup
-    // 4/ Clear up and reply snode journals.
     // Replay ==> JournalCtl.
     // warmReplay, coldReplay 
     // Dataset API
     // DatasetGraphAPI - everything some kinds of transaction?
     // Iterator tracking.
+    //   DatasetGraphTDB.find*, prefixes, OpExecutorTDB.OpExecutorPlainTDB=>SolverLib.execute 
+    //   OpExecutorTDB.OpExecutorPlainTDB
+    //     =>SolverLib.execute 
+    //     =>StageMatchTuple
+    //     =>NodeTupleTable.find [NodeTupleTableConcrete]
+    //         ====> "ConcurrencyPolicy" => "system state"
+    //            Iterator<Tuple<NodeId>> find(Tuple<NodeId> tuple) ==> checkIterator: 
+    //     =>RangeIndex eventually.
+    //     **** Catch in NodeTupleTable.find
+    // Larger grain "start write" -- one on each NodeTupleTableConcrete.addRow but need a parser or triple "add" 
+    
+    // ?? Read-only by concurrency policy.
+    
+    
+    // Evenetually:
+    // Iterator<Tuple<NodeId>> find(Tuple<NodeId> tuple)
     
     // DSG.add(Quad(tripleInQuad, triple)) does not affect default graph.
     

Modified: incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/TxMain.java
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/TxMain.java?rev=1144367&r1=1144366&r2=1144367&view=diff
==============================================================================
--- incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/TxMain.java (original)
+++ incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/TxMain.java Fri Jul  8 15:51:48 2011
@@ -74,6 +74,10 @@ public class TxMain
         //SystemTDB.setFileMode(FileMode.direct) ;
         SystemTDB.setFileMode(FileMode.mapped) ;
         DatasetGraphTDB dsg0 = build() ;
+        dsg0.setReadOnly(true) ;
+        load("D.ttl", dsg0) ;
+        exit(0) ;
+        
         Replay.recovery(dsg0) ;
         query("Initial state", "SELECT (Count(*) AS ?c0) { ?s ?p ?o }", dsg0) ;
         //exit(0) ;