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;
}
}
Aggregations