Search in sources :

Example 1 with RiotThriftException

use of org.apache.jena.riot.thrift.RiotThriftException in project jena by apache.

the class NodeTableTRDF method readNodeFromTable.

@Override
protected Node readNodeFromTable(NodeId id) {
    try {
        // Paired : [*]
        long x = id.getPtrLocation();
        transport.readPosition(x);
        RDF_Term term = new RDF_Term();
        term.read(protocol);
        Node n = ThriftConvert.convert(term);
        return n;
    } catch (TException ex) {
        throw new TDBException("NodeTableTRDF/Read", ex);
    } catch (RiotThriftException ex) {
        Log.error(this, "Bad encoding: NodeId = " + id);
        throw ex;
    }
}
Also used : TException(org.apache.thrift.TException) RiotThriftException(org.apache.jena.riot.thrift.RiotThriftException) Node(org.apache.jena.graph.Node) TDBException(org.apache.jena.tdb2.TDBException) RDF_Term(org.apache.jena.riot.thrift.wire.RDF_Term)

Aggregations

Node (org.apache.jena.graph.Node)1 RiotThriftException (org.apache.jena.riot.thrift.RiotThriftException)1 RDF_Term (org.apache.jena.riot.thrift.wire.RDF_Term)1 TDBException (org.apache.jena.tdb2.TDBException)1 TException (org.apache.thrift.TException)1