Package com.googlecode.cqengine.engine
Interface ModificationListener<O>
-
- All Known Subinterfaces:
AttributeIndex<A,O>
,IdentityAttributeIndex<A,O>
,Index<O>
,KeyStatisticsAttributeIndex<A,O>
,KeyStatisticsIndex<A,O>
,QueryEngineInternal<O>
,SortedKeyStatisticsAttributeIndex<A,O>
,SortedKeyStatisticsIndex<A,O>
- All Known Implementing Classes:
AbstractAttributeIndex
,AbstractMapBasedAttributeIndex
,CollectionQueryEngine
,CompoundIndex
,DiskIndex
,FallbackIndex
,HashIndex
,InvertedRadixTreeIndex
,NavigableIndex
,OffHeapIndex
,PartialDiskIndex
,PartialIndex
,PartialNavigableIndex
,PartialOffHeapIndex
,PartialSortedKeyStatisticsAttributeIndex
,PartialSQLiteIndex
,RadixTreeIndex
,ReversedRadixTreeIndex
,SimplifiedSQLiteIndex
,SQLiteDiskIdentityIndex
,SQLiteIdentityIndex
,SQLiteIndex
,SQLiteOffHeapIdentityIndex
,StandingQueryIndex
,SuffixTreeIndex
,UniqueIndex
public interface ModificationListener<O>
- Author:
- Niall Gallagher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addAll(ObjectSet<O> objectSet, QueryOptions queryOptions)
Notifies the listener that the specified objects are being added to the collection, and so it can take action and update its internal data structures.void
clear(QueryOptions queryOptions)
Notifies the listener that all objects have been removed from the collection, and so it can take action and update its internal data structures.void
destroy(QueryOptions queryOptions)
Notifies the listener that it has been removed from the collection, so that it can take action to delete internal data structures.void
init(ObjectStore<O> objectStore, QueryOptions queryOptions)
Notifies the listener that the given ObjectStore has just been created.boolean
removeAll(ObjectSet<O> objectSet, QueryOptions queryOptions)
Notifies the listener that the specified objects are being removed from the collection, and so it can take action and update its internal data structures.
-
-
-
Method Detail
-
addAll
boolean addAll(ObjectSet<O> objectSet, QueryOptions queryOptions)
Notifies the listener that the specified objects are being added to the collection, and so it can take action and update its internal data structures.- Parameters:
objectSet
- The objects being addedqueryOptions
- Optional parameters for the update
-
removeAll
boolean removeAll(ObjectSet<O> objectSet, QueryOptions queryOptions)
Notifies the listener that the specified objects are being removed from the collection, and so it can take action and update its internal data structures.- Parameters:
objectSet
- The objects being removedqueryOptions
- Optional parameters for the update
-
clear
void clear(QueryOptions queryOptions)
Notifies the listener that all objects have been removed from the collection, and so it can take action and update its internal data structures.- Parameters:
queryOptions
- Optional parameters for the update
-
init
void init(ObjectStore<O> objectStore, QueryOptions queryOptions)
Notifies the listener that the given ObjectStore has just been created.- Parameters:
objectStore
- The ObjectStore which persists objectsqueryOptions
- Optional parameters for the update
-
destroy
void destroy(QueryOptions queryOptions)
Notifies the listener that it has been removed from the collection, so that it can take action to delete internal data structures.- Parameters:
queryOptions
- Optional parameters for the update
-
-