Package com.hp.hpl.jena.sdb.layout2.index

Examples of com.hp.hpl.jena.sdb.layout2.index.TupleLoaderOneIndex


    @Override
    protected void formatTableTriples()
    {
        // TODO Generalize : return a template
        TableDescTriples desc = new TableDescTriples() ;
        dropTable(desc.getTableName()) ;
        try {
            String x = sqlStr(
                              "CREATE TABLE %s (",
                              "    %2$s int NOT NULL,",
                              "    %3$s int NOT NULL,",
                              "    %4$s int NOT NULL,",
                              "    PRIMARY KEY (%2$s, %3$s, %4$s)",
                              ")") ;
            x = String.format(x, desc.getTableName(),
                              desc.getSubjectColName(),
                              desc.getPredicateColName(),
                              desc.getObjectColName()) ;
           
            connection().exec(sqlStr(
                                 "CREATE TABLE "+desc.getTableName()+" (",
                                 "    s int NOT NULL,",
                                 "    p int NOT NULL,",
                                 "    o int NOT NULL,",
                                 "    PRIMARY KEY (s, p, o)",
                                 ")"               
View Full Code Here


{
    public StoreBaseHash(SDBConnection connection, StoreDesc desc, StoreFormatter formatter, StoreLoader loader, QueryCompilerFactory compilerF, SQLBridgeFactory sqlBridgeF, SQLGenerator sqlGenerator)
    {
        super(connection, desc,
              formatter, loader, compilerF, sqlBridgeF, sqlGenerator,
              new TableDescTriples(),
              new TableDescQuads() ,
              new TableNodesHash()) ;
    }
View Full Code Here

{
    public StoreBaseIndex(SDBConnection connection, StoreDesc desc, StoreFormatter formatter, StoreLoader loader, QueryCompilerFactory compilerF, SQLBridgeFactory sqlBridgeF, SQLGenerator sqlGenerator)
    {
        super(connection, desc,
              formatter, loader, compilerF, sqlBridgeF, sqlGenerator,
              new TableDescTriples(),
              new TableDescQuads(),
              new TableNodesIndex()) ;
    }
View Full Code Here

   
    static StoreLoader loaderSimple(SDBConnection connection)
    {
        // Temporary - simple loader for development.
        //new LoaderTuplesNodes(connection, TupleLoaderHashDerby.class),
        TupleLoader tLoader = new TupleLoaderOneHash(connection, new TableDescTriples()) ;
        StoreLoader sLoader = new TupleGraphLoader(tLoader) ;
        return sLoader ;
    }
View Full Code Here

      String url = JDBC.makeURL("db2", "sweb-sdb-4:50000", "TEST2H") ;
     
      SDBConnection sdb = new SDBConnection(url, "user", "password") ;
     
            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.DB2) ;
      sdbdb2h = new StoreTriplesNodesHashDB2(sdb, desc);
      sdbdb2h.getTableFormatter().create();
    }
    else
        sdbdb2h.getTableFormatter().truncate();
     
View Full Code Here

      String url = JDBC.makeURL("db2", "sweb-sdb-4:50000", "TEST2H") ;
     
      SDBConnection sdb = new SDBConnection(url, "user", "password") ;
     
            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.DB2) ;
      sdbdb2h = new StoreTriplesNodesHashDB2(sdb, desc);
      sdbdb2h.getTableFormatter().create();
    }
    else
        sdbdb2h.getTableFormatter().truncate();
     
View Full Code Here

      String url = JDBC.makeURL("db2", "sweb-sdb-4:50000", "TEST2H") ;
     
      SDBConnection sdb = new SDBConnection(url, "user", "password") ;
     
            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.DB2) ;
      sdbdb2h = new StoreTriplesNodesHashDB2(sdb, desc);
      sdbdb2h.getTableFormatter().create();
    }
    else
        sdbdb2h.getTableFormatter().truncate();
     
View Full Code Here

      String url = JDBC.makeURL("derby", "localhost", "DB/test2-hash") ;
     
      SDBConnection sdb = new SDBConnection(url, null, null) ;
            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.Derby) ;

      sdbdh = new StoreTriplesNodesHashDerby(sdb, desc);
      sdbdh.getTableFormatter().create();
    }
    else
        sdbdh.getTableFormatter().truncate();
     
View Full Code Here

      String url = JDBC.makeURL("derby", "localhost", "DB/test2-hash") ;
     
      SDBConnection sdb = new SDBConnection(url, null, null) ;
            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.Derby) ;

      sdbdh = new StoreTriplesNodesHashDerby(sdb, desc);
      sdbdh.getTableFormatter().create();
    }
    else
        sdbdh.getTableFormatter().truncate();
     
View Full Code Here

      String url = JDBC.makeURL("derby", "localhost", "DB/test2-hash") ;
     
      SDBConnection sdb = new SDBConnection(url, null, null) ;
            StoreDesc desc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.Derby) ;

      sdbdh = new StoreTriplesNodesHashDerby(sdb, desc);
      sdbdh.getTableFormatter().create();
    }
    else
        sdbdh.getTableFormatter().truncate();
     
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.sdb.layout2.index.TupleLoaderOneIndex

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.