Class PastEventConditionESQueryBuilder
- java.lang.Object
-
- org.apache.unomi.plugins.baseplugin.conditions.PastEventConditionESQueryBuilder
-
- All Implemented Interfaces:
ConditionESQueryBuilder
public class PastEventConditionESQueryBuilder extends Object implements ConditionESQueryBuilder
-
-
Constructor Summary
Constructors Constructor Description PastEventConditionESQueryBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.elasticsearch.index.query.QueryBuilder
buildQuery(Condition condition, Map<String,Object> context, ConditionESQueryBuilderDispatcher dispatcher)
long
count(Condition condition, Map<String,Object> context, ConditionESQueryBuilderDispatcher dispatcher)
protected static Condition
getEventCondition(Condition condition, Map<String,Object> context, String profileId, DefinitionsService definitionsService, ScriptExecutor scriptExecutor)
protected static boolean
getStrategyFromOperator(String operator)
void
setAggregateQueryBucketSize(int aggregateQueryBucketSize)
void
setDefinitionsService(DefinitionsService definitionsService)
void
setMaximumIdsQueryCount(int maximumIdsQueryCount)
void
setPastEventsDisablePartitions(boolean pastEventsDisablePartitions)
void
setPersistenceService(PersistenceService persistenceService)
void
setScriptExecutor(ScriptExecutor scriptExecutor)
void
setSegmentService(SegmentService segmentService)
-
-
-
Method Detail
-
setDefinitionsService
public void setDefinitionsService(DefinitionsService definitionsService)
-
setPersistenceService
public void setPersistenceService(PersistenceService persistenceService)
-
setScriptExecutor
public void setScriptExecutor(ScriptExecutor scriptExecutor)
-
setMaximumIdsQueryCount
public void setMaximumIdsQueryCount(int maximumIdsQueryCount)
-
setAggregateQueryBucketSize
public void setAggregateQueryBucketSize(int aggregateQueryBucketSize)
-
setPastEventsDisablePartitions
public void setPastEventsDisablePartitions(boolean pastEventsDisablePartitions)
-
setSegmentService
public void setSegmentService(SegmentService segmentService)
-
buildQuery
public org.elasticsearch.index.query.QueryBuilder buildQuery(Condition condition, Map<String,Object> context, ConditionESQueryBuilderDispatcher dispatcher)
- Specified by:
buildQuery
in interfaceConditionESQueryBuilder
-
count
public long count(Condition condition, Map<String,Object> context, ConditionESQueryBuilderDispatcher dispatcher)
- Specified by:
count
in interfaceConditionESQueryBuilder
-
getStrategyFromOperator
protected static boolean getStrategyFromOperator(String operator)
-
getEventCondition
protected static Condition getEventCondition(Condition condition, Map<String,Object> context, String profileId, DefinitionsService definitionsService, ScriptExecutor scriptExecutor)
-
-