Package elki.database.datastore
Class DataStoreEvent
- java.lang.Object
-
- elki.database.datastore.DataStoreEvent
-
public class DataStoreEvent extends java.lang.ObjectEncapsulates information describing changes, i.e. updates, insertions, and / or deletions in aDataStore, and used to notify all subscribedDataStoreListenerof 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 DBIDsgetInserts()Get the inserted objects.DBIDsgetRemovals()Get the removed objects.DBIDsgetUpdates()Get the updates objects.static DataStoreEventinsertionEvent(DBIDs inserts)Insertion event.static DataStoreEventremovalEvent(DBIDs removals)Removal event.static DataStoreEventupdateEvent(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
-
-