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

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


        if ( args.length != 2 ) {
            System.out.println("Usage: Run <tdb location> <lucene index location>");
            System.exit(-1);
        }
       
        Location location = new Location(args[0]);
        Dataset dataset = TDBFactory.createDataset(location);
       
        FSDirectory dir = FSDirectory.open(new File(args[1]));
        IndexWriter indexWriter = IndexWriterFactory.create(dir) ;
        IndexBuilderModel larqBuilder = new IndexBuilderString(indexWriter) ;
View Full Code Here


    protected void processModulesAndArgs()
    {
        if ( !super.contains(argLocation) ) throw new CmdException("Required: --loc DIR") ;
       
        locationString   = super.getValue(argLocation) ;
        location = new Location(locationString) ;

        if ( super.hasArg(argSpillSize) )
            spill_size = Integer.valueOf(super.getValue(argSpillSize)) ;
        no_stats = super.hasArg(argNoStats) ;
View Full Code Here

        }

        @Override
        protected void exec()
        {
            Location location = getLocation() ;
            DatasetPrefixStorage prefixes = SetupTDB.makePrefixes(location, new DatasetControlNone()) ;
            for ( String gn : prefixes.graphNames() )
            {
                System.out.println("Graph: "+gn) ;
                PrefixMapping pmap = prefixes.getPrefixMapping(gn) ;
View Full Code Here

        {
            System.err.println("Usage: "+Utils.classShortName(CmdRewriteIndex.class)+" SrcLocation DstLocation IndexName") ;
            System.exit(1) ;
        }
       
        Location srcLoc = new Location(argv[0]) ;
        Location dstLoc = new Location(argv[1]) ;
        String indexName = argv[2] ;
       
        if ( ! FileOps.exists(argv[1]) )
        {
            System.err.println("Destination directory does not exist") ;
            System.exit(1) ;
        }
       
        if ( FileOps.exists(dstLoc.getPath(indexName, Names.bptExtTree)) )
        {
            System.err.println("Destination contains an index of that name") ;
            System.exit(1) ;
        }
       
View Full Code Here

import com.hp.hpl.jena.tdb.base.file.Location;

public class Run_Assembler {

    public static void main(String[] args) throws IOException {
        Location location = new Location("/opt/datasets/tdb/jake-dev1");
        Dataset dataset = TDBFactory.createDataset(location);
        IndexLARQ indexLARQ = AssemblerLARQ.make(dataset, "/opt/datasets/lucene/jake-dev1");
        System.out.println(indexLARQ);
        indexLARQ.close();
    }
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() ;
       
        // The name is the order.
        for ( String indexName : super.getPositional() )
        {
            String primary ;
View Full Code Here

    public void processArgs(CmdArgModule cmdLine)
    {
        if ( cmdLine.contains(locationDecl) )
        {
            String dir = cmdLine.getValue(locationDecl) ;
            location = new Location(dir) ;
        }
    }
View Full Code Here

        {
            System.err.println("Usage: "+Utils.classShortName(tdbgenindex.class)+" srcLocation srcIndex dstLocation dstIndex") ;
            System.exit(1) ;
        }
       
        Location srcLoc = new Location(argv[0]) ;
        String srcIndexName = argv[1] ;
       
        Location dstLoc = new Location(argv[2]) ;
        String dstIndexName = argv[3] ;
       
        int readCacheSize = 0 ;
        int writeCacheSize = -1 ;
       
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

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.