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/11/07 17:16:33 UTC
svn commit: r1198795 - in /incubator/jena/Scratch/AFS/Jena-Dev/trunk/src:
dev/ reports/ reports/archive/
Author: andy
Date: Mon Nov 7 16:16:32 2011
New Revision: 1198795
URL: http://svn.apache.org/viewvc?rev=1198795&view=rev
Log: (empty)
Added:
incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportJena131_TxnConcurrency.java (with props)
incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportPerformanceIN.java (contents, props changed)
- copied, changed from r1198758, incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/ReportPerformanceIN.java
incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportJena154_GraphVarScope.java (contents, props changed)
- copied, changed from r1198758, incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportJena154_GraphVarScope.java
Removed:
incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportJena154_GraphVarScope.java
incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/ReportParsingDurations.java
incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/ReportPerformanceIN.java
Modified:
incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/RunBase.java
Added: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportJena131_TxnConcurrency.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportJena131_TxnConcurrency.java?rev=1198795&view=auto
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportJena131_TxnConcurrency.java (added)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportJena131_TxnConcurrency.java Mon Nov 7 16:16:32 2011
@@ -0,0 +1,50 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package dev;
+
+import com.hp.hpl.jena.sparql.sse.SSE ;
+import com.hp.hpl.jena.tdb.DatasetGraphTxn ;
+import com.hp.hpl.jena.tdb.ReadWrite ;
+import com.hp.hpl.jena.tdb.StoreConnection ;
+
+public class ReportJena131_TxnConcurrency
+{
+ public static void main(String ... argv)
+ {
+ StoreConnection sConn = StoreConnection.createMemUncached() ;
+ sConn.getBaseDataset().add(SSE.parseQuad("(<g> <s> <p> <o>)")) ;
+
+ // This blocks W1 write-back.
+ DatasetGraphTxn dsgR1 = sConn.begin(ReadWrite.READ) ;
+
+ DatasetGraphTxn dsgW1 = sConn.begin(ReadWrite.WRITE) ;
+ dsgW1.add(SSE.parseQuad("(<g1> <s1> <p1> <o1>)")) ;
+ dsgW1.commit();
+ dsgW1.close();
+ // See W1 changes.
+ DatasetGraphTxn dsgR2 = sConn.begin(ReadWrite.READ) ;
+ System.out.println(dsgR2) ;
+
+ DatasetGraphTxn dsgR3 = sConn.begin(ReadWrite.READ) ;
+ System.out.println(dsgR3) ;
+
+
+ }
+}
+
Propchange: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportJena131_TxnConcurrency.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Copied: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportPerformanceIN.java (from r1198758, incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/ReportPerformanceIN.java)
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportPerformanceIN.java?p2=incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportPerformanceIN.java&p1=incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/ReportPerformanceIN.java&r1=1198758&r2=1198795&rev=1198795&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/ReportPerformanceIN.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportPerformanceIN.java Mon Nov 7 16:16:32 2011
@@ -16,7 +16,7 @@
* limitations under the License.
*/
-package reports;
+package dev;
import com.hp.hpl.jena.ontology.OntModelSpec ;
import com.hp.hpl.jena.query.Query ;
Propchange: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportPerformanceIN.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/RunBase.java
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/RunBase.java?rev=1198795&r1=1198794&r2=1198795&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/RunBase.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/RunBase.java Mon Nov 7 16:16:32 2011
@@ -21,9 +21,9 @@ package dev;
public class RunBase
{
- static String divider = "----------------------------------------" ;
- static String nextDivider = null ;
- static void divider()
+ public static String divider = "----------------------------------------" ;
+ public static String nextDivider = null ;
+ public static void divider()
{
if ( nextDivider != null )
System.out.println(nextDivider) ;
Copied: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportJena154_GraphVarScope.java (from r1198758, incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportJena154_GraphVarScope.java)
URL: http://svn.apache.org/viewvc/incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportJena154_GraphVarScope.java?p2=incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportJena154_GraphVarScope.java&p1=incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportJena154_GraphVarScope.java&r1=1198758&r2=1198795&rev=1198795&view=diff
==============================================================================
--- incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/dev/ReportJena154_GraphVarScope.java (original)
+++ incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportJena154_GraphVarScope.java Mon Nov 7 16:16:32 2011
@@ -16,9 +16,9 @@
* limitations under the License.
*/
-package dev;
+package reports.archive;
-import static dev.RunBase.* ;
+import static dev.RunBase.divider ;
import java.util.List ;
@@ -44,7 +44,6 @@ import com.hp.hpl.jena.sparql.engine.Que
import com.hp.hpl.jena.sparql.engine.QueryExecutionBase ;
import com.hp.hpl.jena.sparql.engine.QueryIterator ;
import com.hp.hpl.jena.sparql.engine.main.QueryEngineMain ;
-import com.hp.hpl.jena.sparql.engine.main.QueryEngineMainQuad ;
import com.hp.hpl.jena.sparql.mgt.Explain ;
import com.hp.hpl.jena.sparql.sse.SSE ;
import com.hp.hpl.jena.tdb.DatasetGraphTxn ;
Propchange: incubator/jena/Scratch/AFS/Jena-Dev/trunk/src/reports/archive/ReportJena154_GraphVarScope.java
------------------------------------------------------------------------------
svn:mime-type = text/plain