Search in sources :

Example 1 with TupleTable

use of org.apache.jena.sdb.store.TupleTable in project jena by apache.

the class sdbtuple method execPrint.

private void execPrint(String tableName) {
    Store store = getStore();
    TupleTable table = null;
    if (tableName.equalsIgnoreCase(store.getNodeTableDesc().getTableName())) {
        // A hack.
        // Need to chage SQLBridge to work on Node tables directly (no special build of value getters)
        TableDesc desc = new TableDesc(tableName, store.getNodeTableDesc().getNodeRefColName());
        table = new TupleTable(store, desc);
    } else
        table = new TupleTable(store, tableName);
    divider();
    table.dump();
}
Also used : Store(org.apache.jena.sdb.Store) TableDesc(org.apache.jena.sdb.store.TableDesc) TupleTable(org.apache.jena.sdb.store.TupleTable)

Example 2 with TupleTable

use of org.apache.jena.sdb.store.TupleTable in project jena by apache.

the class sdbtuple method execLoad.

private void execLoad(String tableName) {
    cmdError("Tuple load - not implemented (yet)", true);
    Store store = getStore();
    TupleTable table = null;
    if (tableName.equalsIgnoreCase(store.getNodeTableDesc().getTableName()))
        cmdError("Can't load the node table as a tupole table");
    else
        table = new TupleTable(store, tableName);
}
Also used : Store(org.apache.jena.sdb.Store) TupleTable(org.apache.jena.sdb.store.TupleTable)

Aggregations

Store (org.apache.jena.sdb.Store)2 TupleTable (org.apache.jena.sdb.store.TupleTable)2 TableDesc (org.apache.jena.sdb.store.TableDesc)1