// @Override public void close() { table.close(); }
// @Override public void sync(boolean force) { table.sync(force); }
/** Delete a triple - return true if it was deleted, false if it didn't exist */ public boolean delete(Triple triple) { return table.deleteRow(triple.getSubject(), triple.getPredicate(), triple.getObject()); }
/** Find matching triples */ public Iterator<Triple> find(Node s, Node p, Node o) { Iterator<Tuple<NodeId>> iter = table.findAsNodeIds(s, p, o); if (iter == null) return new NullIterator<Triple>(); Iterator<Triple> iter2 = TupleLib.convertToTriples(table.getNodeTable(), iter); return iter2; }
public boolean add(Triple triple) { return table.addRow(triple.getSubject(), triple.getPredicate(), triple.getObject()); }