Class DataStoreEvent


  • public class DataStoreEvent
    extends java.lang.Object
    Encapsulates information describing changes, i.e. updates, insertions, and / or deletions in a DataStore, and used to notify all subscribed DataStoreListener of the change.
    Since:
    0.4.0
    Author:
    Erich Schubert
    See Also:
    DataStore, DataStoreListener
    • Field Detail

      • inserts

        private DBIDs inserts
        Insertions.
      • removals

        private DBIDs removals
        Removals.
      • updates

        private DBIDs updates
        Updates.
    • Constructor Detail

      • DataStoreEvent

        public DataStoreEvent​(DBIDs inserts,
                              DBIDs removals,
                              DBIDs updates)
        Constructor.
        Parameters:
        inserts - Insertions
        removals - Removals
        updates - Updates
    • 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