Package com.hp.hpl.jena.tdb.transaction

Examples of com.hp.hpl.jena.tdb.transaction.DatasetGraphTransaction$ThreadLocalBoolean


    }

    private static DatasetGraphTransaction _create(Location location)
    {
        // No need to cache StoreConnection does all that.
        return new DatasetGraphTransaction(location) ;
    }
View Full Code Here


            return ;
        }
       
        if ( dataset instanceof DatasetGraphTransaction )
        {
            DatasetGraphTransaction dsgt = (DatasetGraphTransaction)dataset ;
            // This only syncs if the dataset has no tbeen used transactionally.
            // Can't sync transactional dataset graphs (it's meaningless)
            dsgt.syncIfNotTransactional() ;
            return ;
        }
       
        // ARQ 2.7.1 and later - replace with SystemARQ.sync()
View Full Code Here

  {
      Quad q1 = SSE.parseQuad("(<g1> <s1> <p1> '1')") ;
      Quad q2 = SSE.parseQuad("(<g2> <s2> <p2> '2')") ;
        Quad q3 = SSE.parseQuad("(<g3> <s3> <p3> '3')") ;

        DatasetGraphTransaction dsg = (DatasetGraphTransaction)TDBFactory.createDatasetGraph(location);
        System.out.println("Start") ;
        dump(dsg) ;
       
        write(dsg, q1) ;
        write(dsg, q2) ;
View Full Code Here

            return ;
        }
       
        if ( dataset instanceof DatasetGraphTransaction )
        {
            DatasetGraphTransaction dsgt = (DatasetGraphTransaction)dataset ;
            // This only sync if the dataset has not been used transactionally.
            // Can't sync transactional datasets (it's meaningless)
            dsgt.syncIfNotTransactional() ;
            return ;
        }
       
        // ARQ 2.7.1 and later - replace with SystemARQ.sync()
View Full Code Here

            syncObject(dataset) ;
            return ;
        }

        if ( dataset instanceof DatasetGraphTransaction ) {
            DatasetGraphTransaction dsgt = (DatasetGraphTransaction)dataset ;
            // This only sync if the dataset has not been used transactionally.
            // Can't sync transactional datasets (it's meaningless)
            dsgt.syncIfNotTransactional() ;
            return ;
        }

        // May be a general purpose dataset with TDB objects in it.
        sync(dataset.getDefaultGraph()) ;
View Full Code Here

            return ;
        }
       
        if ( dataset instanceof DatasetGraphTransaction )
        {
            DatasetGraphTransaction dsgt = (DatasetGraphTransaction)dataset ;
            // This only syncs if the dataset has no tbeen used transactionally.
            // Can't sync transactional dataset graphs (it's meaningless)
            dsgt.syncIfNotTransactional() ;
            return ;
        }
       
        // ARQ 2.7.1 and later - replace with SystemARQ.sync()
View Full Code Here

       
        Location location = new Location(output);
        DatasetGraphTDB dsgDisk = TDBMaker.uncachedFactory.createDatasetGraph(location);
        TDBLoader.load(dsgDisk, urls);

        DatasetGraphTransaction dsgMem = (DatasetGraphTransaction)TDBFactory.createDatasetGraph();
        TDBLoader.load(dsgMem.getBaseDatasetGraph(), urls);
       
        NodeTableRewriter.fixNodeTable2(location, log, null);
        assertTrue ( tdbloader4.dump(dsgMem, dsgDisk), tdbloader4.isomorphic ( dsgMem, dsgDisk ) );
    }
View Full Code Here

        for (File file : new File(inputPath).listFiles()) {
            if (file.isFile()) {
                urls.add(file.getAbsolutePath());
            }
        }
        DatasetGraphTransaction dsg = (DatasetGraphTransaction)TDBFactory.createDatasetGraph();
        TDBLoader.load(dsg.getBaseDatasetGraph(), urls);

        return dsg.getBaseDatasetGraph();
    }
View Full Code Here

public class TDBMerge {

  public static void main(String[] args) {
    Location location1 = new Location("target/out-01") ;
    DatasetGraphTransaction dsg1 = (DatasetGraphTransaction)TDBFactory.createDatasetGraph(location1) ;
    TDBLoader.load(dsg1.getBaseDatasetGraph(), "src/test/resources/input/data.nq") ;
    dsg1.close() ;

    Location location2 = new Location("target/out-02") ;
    DatasetGraphTransaction dsg2 = (DatasetGraphTransaction)TDBFactory.createDatasetGraph(location2) ;
    TDBLoader.load(dsg2.getBaseDatasetGraph(), "src/test/resources/input/data.nt") ;
    dsg2.close() ;

   
//    RecordFactory tripleRecordFactory = new RecordFactory(SystemTDB.LenIndexTripleRecord, 0) ;
//    RecordFactory quadRecordFactory = new RecordFactory(SystemTDB.LenIndexQuadRecord, 0) ;
    RecordFactory nodeTableRecordFactory = new RecordFactory(SystemTDB.LenNodeHash, SystemTDB.SizeOfNodeId) ;
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.tdb.transaction.DatasetGraphTransaction$ThreadLocalBoolean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.