Interface CollectionExecutor
-
- All Known Implementing Classes:
AndMultiPrimaryKeyCollectionExecutor,AnyAndCollectionExecutor,CompareCollectionExecutor,CompareExhaustiveAndCollectionExecutor,ExhaustiveCollectionExecutor,NonAndCollectionExecutor,NonCollectionExecutor,NotCollectionExecutor,OrCollectionExecutor
public interface CollectionExecutorInterface for executors which will operate on a collection of events(i.eStateEvent). These will be used by in-memory table implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCollectionExecutor.CostEnums to specify operation cost.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(StateEvent matchingEvent, IndexedEventHolder indexedEventHolder)Checks if a matching event exist in indexedEventHoldervoiddelete(StateEvent deletingEvent, IndexedEventHolder indexedEventHolder)Delete matching events exists from indexedEventHolderStreamEventfind(StateEvent matchingEvent, IndexedEventHolder indexedEventHolder, StreamEventCloner storeEventCloner)Find the Events matching to the condition, used on the primary callCollection<StreamEvent>findEvents(StateEvent matchingEvent, IndexedEventHolder indexedEventHolder)Find the Events matching to the condition, used for consecutive calls from parent CollectionExecutorCollectionExecutor.CostgetDefaultCost()
-
-
-
Method Detail
-
find
StreamEvent find(StateEvent matchingEvent, IndexedEventHolder indexedEventHolder, StreamEventCloner storeEventCloner)
Find the Events matching to the condition, used on the primary call- Parameters:
matchingEvent- matching input eventindexedEventHolder- indexed EventHolder containing datastoreEventCloner- store event cloner- Returns:
- matched StreamEvent, null if no events matched. If storeEventCloner is null it will return the actual event references.
-
findEvents
Collection<StreamEvent> findEvents(StateEvent matchingEvent, IndexedEventHolder indexedEventHolder)
Find the Events matching to the condition, used for consecutive calls from parent CollectionExecutor- Parameters:
matchingEvent- matching input eventindexedEventHolder- indexed EventHolder containing data- Returns:
- matched events as Set, null if Exhaustive processing need to be done.
-
contains
boolean contains(StateEvent matchingEvent, IndexedEventHolder indexedEventHolder)
Checks if a matching event exist in indexedEventHolder- Parameters:
matchingEvent- matching input eventindexedEventHolder- indexed EventHolder containing data- Returns:
- true if a matching event is available in indexedEventHolder else false
-
delete
void delete(StateEvent deletingEvent, IndexedEventHolder indexedEventHolder)
Delete matching events exists from indexedEventHolder- Parameters:
deletingEvent- matching input eventindexedEventHolder- indexed EventHolder containing data
-
getDefaultCost
CollectionExecutor.Cost getDefaultCost()
-
-