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 Summary
Modifier 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 toeventTimeFrom
and 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 toeventTime
byGeRecordTime
(ZonedDateTime recordTime) Keep only events with record time greater or equal torecordTime
byGtCustom
(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 thaneventTimeTo
byLtRecordTime
(ZonedDateTime recordTime) Keep only events with record time strictly less thanrecordTime
byRecordTime
(ZonedDateTime recordTimeFrom, ZonedDateTime recordTimeTo) Keep only events with record time greater or equal torecordTimeFrom
and 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.IEventsQuery
byAction, 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, withOffset
Methods inherited from interface com.persequor.event.IRepositoryEventsQuery
execute, executeSingle, orderBy
-
Method Details
-
byRecordTime
Keep only events with record time greater or equal torecordTimeFrom
and strictly less thanrecordTimeTo
: recordTimeFrom <= record time < recordTimeTo- Specified by:
byRecordTime
in interfaceIEventsQuery<T extends IElasticEventsQuery<T>>
- Parameters:
recordTimeFrom
- lower inclusive bound of record timerecordTimeTo
- upper exclusive bound of record time- Returns:
- this query instance
-
byGeRecordTime
Keep only events with record time greater or equal torecordTime
- Specified by:
byGeRecordTime
in interfaceIEventsQuery<T extends IElasticEventsQuery<T>>
- Parameters:
recordTime
- lower inclusive bound of record time- Returns:
- this query instance
-
byLtRecordTime
Keep only events with record time strictly less thanrecordTime
- Specified by:
byLtRecordTime
in interfaceIEventsQuery<T extends IElasticEventsQuery<T>>
- Parameters:
recordTime
- upper exclusive bound of record time- Returns:
- this query instance
-
byEventTime
Keep only events with event time greater or equal toeventTimeFrom
and strictly less thaneventTimeTo
: eventTimeFrom <= event time < eventTimeTo- Specified by:
byEventTime
in interfaceIEventsQuery<T extends IElasticEventsQuery<T>>
- Parameters:
eventTimeFrom
- lower inclusive bound of event timeeventTimeTo
- upper exclusive bound of event time- Returns:
- this query instance
-
byGeEventTime
Keep only events with event time greater or equal toeventTime
- Specified by:
byGeEventTime
in interfaceIEventsQuery<T extends IElasticEventsQuery<T>>
- Parameters:
eventTime
- lower inclusive bound of event time- Returns:
- this query instance
-
byLtEventTime
Keep only events with event time strictly less thaneventTimeTo
- Specified by:
byLtEventTime
in interfaceIEventsQuery<T extends IElasticEventsQuery<T>>
- Parameters:
eventTime
- upper exclusive bound of event time- Returns:
- this query instance
-
filterRevertedEvents
Explicitly set the filter option for reverted events, to override the default set in the saga configuration- Specified by:
filterRevertedEvents
in interfaceIEventsQuery<T extends IElasticEventsQuery<T>>
- Parameters:
enableFilter
- sets whether or not to filter reverted events from the query result- Returns:
- this query instance
-
freeTextSearch
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.html- Parameters:
query
- ElasticSearch full text "simple query strings"- Returns:
- this query instance
-
freeTextSearch
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.html- Parameters:
query
- ElasticSearch full text "simple query strings"- Returns:
- this query instance
-
anyFreeTextSearch
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.html- Parameters:
query
- ElasticSearch full text "simple query strings"- Returns:
- this query instance
-
advancedFreeTextSearch
Deprecated.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
-
byIndexHashes
Keep 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:
-