Package com.hp.hpl.jena.tdb.base.file

Examples of com.hp.hpl.jena.tdb.base.file.Location


    public Location getLocation()
    {
        List<String> x = locations() ;
        if ( x.size() == 0 )
            return null ;
        return new Location(x.get(0)) ;
    }
View Full Code Here


    @Override
    protected void exec()
    {
        List<String> tripleIndexes = Arrays.asList(Names.tripleIndexes) ;
        List<String> quadIndexes = Arrays.asList(Names.quadIndexes) ;
        Location loc = modLocation.getLocation() ;
       
        StoreConnection sConn = StoreConnection.make(loc) ;
        DatasetGraphTDB dsg = sConn.getBaseDataset() ;
        NodeTable nodeTable = dsg.getQuadTable().getNodeTupleTable().getNodeTable() ;
        dump(System.out, nodeTable) ;
View Full Code Here

                            String indexNode2Id, int node2NodeIdCacheSize,
                            String indexId2Node, int nodeId2NodeCacheSize, //

                            int sizeNodeMissCacheSize)
    {
        NodeTable nodeTable = SetupTDB.makeNodeTable(new Location(location),
                                                     indexNode2Id, node2NodeIdCacheSize,
                                                     indexId2Node, nodeId2NodeCacheSize,
                                                     sizeNodeMissCacheSize) ;
    }
View Full Code Here

        final Dataset ds ;
       
        if ( locationDir != null )
        {
            Location location = new Location(locationDir) ;
            ds = TDBFactory.createDataset(location) ;
        }
        else
            ds = DatasetAssemblerTDB.make(dataset) ;
View Full Code Here

        String locationStr2 = argv[2] ;
        String indexName2 = argv[3] ;
       
        // Argument processing
       
        Location location1 = new Location(locationStr1) ;
        Location location2 = new Location(locationStr2) ;
       
        int keyLength = SystemTDB.SizeOfNodeId * indexName1.length() ;
        int valueLength = 0 ;
       
        // The name is the order.
View Full Code Here

           
        String dataFile = argv[2] ;
       
        // Argument processing
       
        Location location = new Location(locationStr) ;
       
        //InputStream input = System.in ;
        InputStream input = IO.openFile(dataFile) ;
       
        int keyLength = SystemTDB.SizeOfNodeId * indexName.length() ;
View Full Code Here

        if ( !super.contains(argLocation) ) throw new CmdException("Required: --loc DIR") ;
//        if ( !super.contains(argTriplesOut) ) throw new CmdException("Required: --triples FILE") ;
//        if ( !super.contains(argQuadsOut) ) throw new CmdException("Required: --quads FILE") ;
       
        locationString   = super.getValue(argLocation) ;
        location = new Location(locationString) ;

        dataFileTriples  = super.getValue(argTriplesOut) ;
        if ( dataFileTriples == null )
            dataFileTriples = location.getPath("triples", "tmp") ;
       
View Full Code Here

    {  
      String dirname = nonDeleteableMMapFiles ? ConfigTest.getTestingDirUnique() : ConfigTest.getTestingDir() ;
      StoreConnection.reset() ;
    FileOps.ensureDir(dirname) ;
    FileOps.clearDirectory(dirname) ;
    graphLocation = new GraphLocation(new Location(dirname)) ;
        graphLocation.createDataset() ;
    }
View Full Code Here

    @Test
    public void store_5()
    {
        // No transaction.  Make sure StoreConnection.release cleans up OK. 
        StoreConnection sConn = getStoreConnection() ;
        Location loc = sConn.getLocation() ;
        DatasetGraph dsg = sConn.getBaseDataset() ;
        dsg.add(q) ;
        assertTrue(dsg.contains(q)) ;
       
        StoreConnection.release(loc) ;
View Full Code Here

    {
        // Transaction - release - reattach
        // This tests that the dataset is sync'ed when going into transactional mode.
       
        StoreConnection sConn = getStoreConnection() ;
        Location loc = sConn.getLocation() ;

        DatasetGraphTxn dsgTxn = sConn.begin(ReadWrite.WRITE) ;

        dsgTxn.add(q1) ;
        assertTrue(dsgTxn.contains(q1)) ;
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.tdb.base.file.Location

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.