@Override protected void preprocess() { createStorage(); materialized_RkNN = DataStoreUtil.makeStorage(relation.getDBIDs(), DataStoreFactory.HINT_HOT, TreeSet.class); FiniteProgress progress = LOG.isVerbose() ? new FiniteProgress("Materializing k nearest neighbors and reverse k nearest neighbors (k=" + k + ")", relation.size(), getLogger()) : null; materializeKNNAndRKNNs(DBIDUtil.ensureArray(relation.getDBIDs()), progress); }
@Override protected void preprocess() { createStorage(); materialized_RkNN = DataStoreUtil.makeStorage(relation.getDBIDs(), DataStoreFactory.HINT_HOT, TreeSet.class); FiniteProgress progress = LOG.isVerbose() ? new FiniteProgress("Materializing k nearest neighbors and reverse k nearest neighbors (k=" + k + ")", relation.size(), getLogger()) : null; materializeKNNAndRKNNs(DBIDUtil.ensureArray(relation.getDBIDs()), progress); }
@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 preprocess() { createStorage(); materialized_RkNN = DataStoreUtil.makeStorage(relation.getDBIDs(), DataStoreFactory.HINT_HOT, TreeSet.class); FiniteProgress progress = getLogger().isVerbose() ? new FiniteProgress("Materializing k nearest neighbors and reverse k nearest neighbors (k=" + k + ")", relation.size(), getLogger()) : null; materializeKNNAndRKNNs(DBIDUtil.ensureArray(relation.getDBIDs()), progress); }
@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); }