@Override protected void objectsInserted(DBIDs ids) { StepProgress stepprog = LOG.isVerbose() ? new StepProgress(3) : null; ArrayDBIDs aids = DBIDUtil.ensureArray(ids); // materialize the new kNNs and RkNNs LOG.beginStep(stepprog, 1, "New insertions ocurred, materialize their new kNNs and RkNNs."); materializeKNNAndRKNNs(aids, null); // update the old kNNs and RkNNs LOG.beginStep(stepprog, 2, "New insertions ocurred, update the affected kNNs and RkNNs."); ArrayDBIDs rkNN_ids = updateKNNsAndRkNNs(ids); // inform listener LOG.beginStep(stepprog, 3, "New insertions ocurred, inform listeners."); fireKNNsInserted(ids, rkNN_ids); LOG.ensureCompleted(stepprog); }
@Override protected void objectsInserted(DBIDs ids) { StepProgress stepprog = LOG.isVerbose() ? new StepProgress(3) : null; ArrayDBIDs aids = DBIDUtil.ensureArray(ids); // materialize the new kNNs and RkNNs LOG.beginStep(stepprog, 1, "New insertions ocurred, materialize their new kNNs and RkNNs."); materializeKNNAndRKNNs(aids, null); // update the old kNNs and RkNNs LOG.beginStep(stepprog, 2, "New insertions ocurred, update the affected kNNs and RkNNs."); ArrayDBIDs rkNN_ids = updateKNNsAndRkNNs(ids); // inform listener LOG.beginStep(stepprog, 3, "New insertions ocurred, inform listeners."); fireKNNsInserted(ids, rkNN_ids); LOG.ensureCompleted(stepprog); }
@Override protected void objectsInserted(DBIDs ids) { StepProgress stepprog = getLogger().isVerbose() ? new StepProgress(3) : null; ArrayDBIDs aids = DBIDUtil.ensureArray(ids); // materialize the new kNNs and RkNNs getLogger().beginStep(stepprog, 1, "New insertions ocurred, materialize their new kNNs and RkNNs."); materializeKNNAndRKNNs(aids, null); // update the old kNNs and RkNNs getLogger().beginStep(stepprog, 2, "New insertions ocurred, update the affected kNNs and RkNNs."); ArrayDBIDs rkNN_ids = updateKNNsAndRkNNs(ids); // inform listener getLogger().beginStep(stepprog, 3, "New insertions ocurred, inform listeners."); fireKNNsInserted(ids, rkNN_ids); getLogger().ensureCompleted(stepprog); }