示例#1
0
 // @Override
 public void close() {
   table.close();
 }
示例#2
0
 // @Override
 public void sync(boolean force) {
   table.sync(force);
 }
示例#3
0
 /** 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());
 }
示例#4
0
 /** 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;
 }
示例#5
0
 public boolean add(Triple triple) {
   return table.addRow(triple.getSubject(), triple.getPredicate(), triple.getObject());
 }