Package com.persequor.event
Interface IElasticEventsQuery<T extends IElasticEventsQuery<T>>
- All Superinterfaces:
- IEventsQuery<T>,- IRepositoryEventsQuery<T>
public interface IElasticEventsQuery<T extends IElasticEventsQuery<T>>
extends IRepositoryEventsQuery<T>
- 
Method SummaryModifier and TypeMethodDescriptionadvancedFreeTextSearch(String query) Deprecated.We started to support operating modes where ElasticSearch is not present, but custom indexing is still functional.anyFreeTextSearch(List<String> query) Filter this query with a free text search query using OR operator See: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.htmlbyCustomMatching(String field, Long value) byCustomMatching(String field, String value) byCustomMatching(String field, ZonedDateTime value) byEventTime(ZonedDateTime eventTimeFrom, ZonedDateTime eventTimeTo) Keep only events with event time greater or equal toeventTimeFromand strictly less thaneventTimeTo: eventTimeFrom <= event time < eventTimeTobyGeCustom(String field, Long value) byGeCustom(String field, ZonedDateTime value) byGeEventTime(ZonedDateTime eventTime) Keep only events with event time greater or equal toeventTimebyGeRecordTime(ZonedDateTime recordTime) Keep only events with record time greater or equal torecordTimebyGtCustom(String field, Long value) byGtCustom(String field, ZonedDateTime value) byIndexHashes(Set<String> indexHash) Keep only events based on indexHashbyLeCustom(String field, Long value) byLeCustom(String field, ZonedDateTime value) byLtCustom(String field, Long value) byLtCustom(String field, ZonedDateTime value) byLtEventTime(ZonedDateTime eventTime) Keep only events with event time strictly less thaneventTimeTobyLtRecordTime(ZonedDateTime recordTime) Keep only events with record time strictly less thanrecordTimebyRecordTime(ZonedDateTime recordTimeFrom, ZonedDateTime recordTimeTo) Keep only events with record time greater or equal torecordTimeFromand strictly less thanrecordTimeTo: recordTimeFrom <= record time < recordTimeTofilterRevertedEvents(boolean enableFilter) Explicitly set the filter option for reverted events, to override the default set in the saga configurationfreeTextSearch(String query) Filter this query with a free text search query See: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.htmlfreeTextSearch(List<String> query) Filter this query with a free text search query using AND operator See: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.htmlMethods inherited from interface com.persequor.event.IEventsQuerybyAction, byAction, byBizLocation, byBizLocation, byBizStep, byBizStep, byBizTransaction, byBizTransaction, byDestination, byDestination, byDisposition, byDisposition, byEpcisEventId, byEpcisEventId, byEventType, byEventType, byMatchAnyEPC, byMatchAnyEPC, byMatchAnyEpcClass, byMatchAnyEpcClass, byMatchBizTransaction, byMatchBizTransaction, byMatchEpc, byMatchEpc, byMatchEpcClass, byMatchEpcClass, byMatchParentID, byMatchParentID, byReadPoint, bySagaEventId, bySagaEventId, bySagaEventIdentifiers, bySource, bySource, withLimit, withOffsetMethods inherited from interface com.persequor.event.IRepositoryEventsQueryexecute, executeSingle, orderBy, withEpcExpansion
- 
Method Details- 
byRecordTimeKeep only events with record time greater or equal torecordTimeFromand strictly less thanrecordTimeTo: recordTimeFrom <= record time < recordTimeTo- Specified by:
- byRecordTimein interface- IEventsQuery<T extends IElasticEventsQuery<T>>
- Parameters:
- recordTimeFrom- lower inclusive bound of record time
- recordTimeTo- upper exclusive bound of record time
- Returns:
- this query instance
 
- 
byGeRecordTimeKeep only events with record time greater or equal torecordTime- Specified by:
- byGeRecordTimein interface- IEventsQuery<T extends IElasticEventsQuery<T>>
- Parameters:
- recordTime- lower inclusive bound of record time
- Returns:
- this query instance
 
- 
byLtRecordTimeKeep only events with record time strictly less thanrecordTime- Specified by:
- byLtRecordTimein interface- IEventsQuery<T extends IElasticEventsQuery<T>>
- Parameters:
- recordTime- upper exclusive bound of record time
- Returns:
- this query instance
 
- 
byEventTimeKeep only events with event time greater or equal toeventTimeFromand strictly less thaneventTimeTo: eventTimeFrom <= event time < eventTimeTo- Specified by:
- byEventTimein interface- IEventsQuery<T extends IElasticEventsQuery<T>>
- Parameters:
- eventTimeFrom- lower inclusive bound of event time
- eventTimeTo- upper exclusive bound of event time
- Returns:
- this query instance
 
- 
byGeEventTimeKeep only events with event time greater or equal toeventTime- Specified by:
- byGeEventTimein interface- IEventsQuery<T extends IElasticEventsQuery<T>>
- Parameters:
- eventTime- lower inclusive bound of event time
- Returns:
- this query instance
 
- 
byLtEventTimeKeep only events with event time strictly less thaneventTimeTo- Specified by:
- byLtEventTimein interface- IEventsQuery<T extends IElasticEventsQuery<T>>
- Parameters:
- eventTime- upper exclusive bound of event time
- Returns:
- this query instance
 
- 
filterRevertedEventsExplicitly set the filter option for reverted events, to override the default set in the saga configuration- Specified by:
- filterRevertedEventsin interface- IEventsQuery<T extends IElasticEventsQuery<T>>
- Parameters:
- enableFilter- sets whether or not to filter reverted events from the query result
- Returns:
- this query instance
 
- 
freeTextSearchFilter this query with a free text search query using AND operator See: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html- Parameters:
- query- ElasticSearch full text "simple query strings"
- Returns:
- this query instance
 
- 
freeTextSearchFilter this query with a free text search query See: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html- Parameters:
- query- ElasticSearch full text "simple query strings"
- Returns:
- this query instance
 
- 
anyFreeTextSearchFilter this query with a free text search query using OR operator See: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html- Parameters:
- query- ElasticSearch full text "simple query strings"
- Returns:
- this query instance
 
- 
advancedFreeTextSearchDeprecated.We started to support operating modes where ElasticSearch is not present, but custom indexing is still functional. In those modes supporting full syntax of ElasticSearch query language doesn't make sense. For stable cross-mode functionality a new SDK will be introduced. Until then use this method with caution, because you can potentially produce code not compatible between different Saga operating modes.Filter this query with an advanced free text search query See: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html- Parameters:
- query- ElasticSearch full text "query string"
- Returns:
- this query instance
 
- 
byIndexHashesKeep only events based on indexHash- Parameters:
- indexHash- the collection of accepted index hashes
- Returns:
- this query instance
 
- 
byCustomMatching- Parameters:
- field-
- value-
- Returns:
 
- 
byCustomMatching- Parameters:
- field-
- value-
- Returns:
 
- 
byCustomMatching- Parameters:
- field-
- value-
- Returns:
 
- 
byGtCustom- Parameters:
- field-
- value-
- Returns:
 
- 
byGeCustom- Parameters:
- field-
- value-
- Returns:
 
- 
byGtCustom- Parameters:
- field-
- value-
- Returns:
 
- 
byGeCustom- Parameters:
- field-
- value-
- Returns:
 
- 
byLtCustom- Parameters:
- field-
- value-
- Returns:
 
- 
byLeCustom- Parameters:
- field-
- value-
- Returns:
 
- 
byLtCustom- Parameters:
- field-
- value-
- Returns:
 
- 
byLeCustom- Parameters:
- field-
- value-
- Returns:
 
 
-