
public class KNNChangeEvent extends EventObject
KNNListener of the change.KNNListener,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
KNNChangeEvent.Type
Available event types.
|
| Modifier and Type | Field and Description |
|---|---|
private DBIDs |
objects
The ids of the kNNs that were inserted or deleted due to the insertion or
removals of objects.
|
private static long |
serialVersionUID
Serialization ID since Java EventObjects are expected to be serializable.
|
private KNNChangeEvent.Type |
type
Holds the type of this change event.
|
private DBIDs |
updates
The ids of the kNNs that were updated due to the insertion or removals of
objects.
|
source| Constructor and Description |
|---|
KNNChangeEvent(Object source,
KNNChangeEvent.Type type,
DBIDs objects,
DBIDs updates)
Used to create an event when kNNs of some objects have been changed.
|
| Modifier and Type | Method and Description |
|---|---|
DBIDs |
getObjects()
Returns the ids of the removed or inserted kNNs (according to the type of
this event).
|
KNNChangeEvent.Type |
getType()
Returns the type of this change event.
|
DBIDs |
getUpdates()
Returns the ids of kNNs which have been changed due to the removals or
insertions.
|
getSource, toStringprivate static final long serialVersionUID
private final KNNChangeEvent.Type type
KNNChangeEvent.Typeprivate final DBIDs objects
private final DBIDs updates
public KNNChangeEvent(Object source, KNNChangeEvent.Type type, DBIDs objects, DBIDs updates)
source - the object responsible for generating the eventtype - the type of changeobjects - the ids of the removed or inserted kNNs (according to the
type of this event)updates - the ids of kNNs which have been changed due to the removals
or insertionsKNNChangeEvent.Type.INSERT,
KNNChangeEvent.Type.DELETEpublic KNNChangeEvent.Type getType()
public DBIDs getObjects()
public DBIDs getUpdates()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.