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); }
private static void incrementalUpdateIndexes(List<Triple> triples, DatasetGraphTDB dsg) { for (Triple triple : triples) { dsg.getTripleTable().add(triple); } }