Пример #1
0
  private static void batchUpdateIndexes(
      DatasetGraphTDB dsg,
      TDBDatasetDetails details,
      List<Triple> batchTriples,
      List<Tuple<NodeId>> workspace) {
    List<Tuple<NodeId>> tuples = workspace;
    if (tuples == null) tuples = new ArrayList<>(batchTriples.size());

    convert(batchTriples, tuples, details.ntTop);
    // log.info("Batch triples: "+tuples.size()) ;

    TupleTable tupleTable = dsg.getTripleTable().getNodeTupleTable().getTupleTable();
    tupleTable.addAll(tuples);
  }
Пример #2
0
 private static void incrementalUpdateIndexes(List<Triple> triples, DatasetGraphTDB dsg) {
   for (Triple triple : triples) {
     dsg.getTripleTable().add(triple);
   }
 }