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