Package elki.database.datastore
Class DataStoreEvent
- java.lang.Object
-
- elki.database.datastore.DataStoreEvent
-
public class DataStoreEvent extends java.lang.Object
Encapsulates information describing changes, i.e. updates, insertions, and / or deletions in aDataStore
, and used to notify all subscribedDataStoreListener
of the change.- Since:
- 0.4.0
- Author:
- Erich Schubert
- See Also:
DataStore
,DataStoreListener
-
-
Constructor Summary
Constructors Constructor Description DataStoreEvent(DBIDs inserts, DBIDs removals, DBIDs updates)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DBIDs
getInserts()
Get the inserted objects.DBIDs
getRemovals()
Get the removed objects.DBIDs
getUpdates()
Get the updates objects.static DataStoreEvent
insertionEvent(DBIDs inserts)
Insertion event.static DataStoreEvent
removalEvent(DBIDs removals)
Removal event.static DataStoreEvent
updateEvent(DBIDs updates)
Update event.
-
-
-
Method Detail
-
insertionEvent
public static DataStoreEvent insertionEvent(DBIDs inserts)
Insertion event.- Parameters:
inserts
- Insertions- Returns:
- Event
-
removalEvent
public static DataStoreEvent removalEvent(DBIDs removals)
Removal event.- Parameters:
removals
- Removal- Returns:
- Event
-
updateEvent
public static DataStoreEvent updateEvent(DBIDs updates)
Update event.- Parameters:
updates
- Updates- Returns:
- Event
-
getInserts
public DBIDs getInserts()
Get the inserted objects.- Returns:
- Insertions
-
getRemovals
public DBIDs getRemovals()
Get the removed objects.- Returns:
- Removals
-
getUpdates
public DBIDs getUpdates()
Get the updates objects.- Returns:
- Updates
-
-