use of de.lmu.ifi.dbs.elki.index.tree.IndexTree in project elki by elki-project.
the class IndexStatistics method processNewResult.
@Override
public void processNewResult(ResultHierarchy hier, Result newResult) {
Database db = ResultUtil.findDatabase(hier);
Collection<String> header = null;
final ArrayList<IndexTree<?, ?>> indexes = ResultUtil.filterResults(hier, newResult, IndexTree.class);
if (indexes == null || indexes.isEmpty()) {
return;
}
for (IndexTree<?, ?> index : indexes) {
header = new ArrayList<>();
header.add(index.toString());
}
Collection<Pair<String, String>> col = new ArrayList<>();
IndexMetaResult analysis = new IndexMetaResult(col, header);
db.getHierarchy().add(db, analysis);
}