Class CorrelationView
java.lang.Object
com.espertech.esper.common.internal.view.core.ViewSupport
com.espertech.esper.common.internal.view.derived.BaseBivariateStatisticsView
com.espertech.esper.common.internal.view.derived.CorrelationView
- All Implemented Interfaces:
DerivedValueView
,View
,Viewable
,Iterable<EventBean>
A view that calculates correlation on two fields. The view uses internally a
BaseStatisticsBean
instance for the calculations, it also returns this bean as the result.
This class accepts most of its behaviour from its parent, BaseBivariateStatisticsView
. It adds
the usage of the correlation bean and the appropriate schema.-
Field Summary
Fields inherited from class com.espertech.esper.common.internal.view.derived.BaseBivariateStatisticsView
additionalProps, agentInstanceContext, eventType, lastValuesEventNew, statisticsBean, viewFactory
Fields inherited from class com.espertech.esper.common.internal.view.core.ViewSupport
child, parent
-
Constructor Summary
ConstructorDescriptionCorrelationView
(ViewFactory viewFactory, AgentInstanceContext agentInstanceContext, ExprEvaluator xExpressionEval, ExprEvaluator yExpressionEval, EventType eventType, StatViewAdditionalPropsEval additionalProps) -
Method Summary
Modifier and TypeMethodDescriptionprotected static EventType
createEventType
(StatViewAdditionalPropsForge additionalProps, ViewForgeEnv viewForgeEnv) static EventBean
doPopulateMap
(BaseStatisticsBean baseStatisticsBean, EventBeanTypedEventFactory eventAdapterService, EventType eventType, StatViewAdditionalPropsEval additionalProps, Object[] decoration) Populate bean.Provides metadata information about the type of object the event collection contains.populateMap
(BaseStatisticsBean baseStatisticsBean, EventBeanTypedEventFactory eventAdapterService, EventType eventType, StatViewAdditionalPropsEval additionalProps, Object[] decoration) Populate bean.Methods inherited from class com.espertech.esper.common.internal.view.derived.BaseBivariateStatisticsView
getAdditionalProps, getExpressionXEval, getExpressionYEval, getLastValuesEventNew, getStatisticsBean, getViewFactory, iterator, setLastValuesEventNew, update
Methods inherited from class com.espertech.esper.common.internal.view.core.ViewSupport
getChild, getParent, setChild, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CorrelationView
public CorrelationView(ViewFactory viewFactory, AgentInstanceContext agentInstanceContext, ExprEvaluator xExpressionEval, ExprEvaluator yExpressionEval, EventType eventType, StatViewAdditionalPropsEval additionalProps)
-
-
Method Details
-
populateMap
public EventBean populateMap(BaseStatisticsBean baseStatisticsBean, EventBeanTypedEventFactory eventAdapterService, EventType eventType, StatViewAdditionalPropsEval additionalProps, Object[] decoration) Description copied from class:BaseBivariateStatisticsView
Populate bean.- Specified by:
populateMap
in classBaseBivariateStatisticsView
- Parameters:
baseStatisticsBean
- resultseventAdapterService
- event adapterseventType
- typeadditionalProps
- additional propsdecoration
- decoration values- Returns:
- bean
-
doPopulateMap
public static EventBean doPopulateMap(BaseStatisticsBean baseStatisticsBean, EventBeanTypedEventFactory eventAdapterService, EventType eventType, StatViewAdditionalPropsEval additionalProps, Object[] decoration) Populate bean.- Parameters:
baseStatisticsBean
- resultseventAdapterService
- event wrappingeventType
- type to produceadditionalProps
- addition propertiesdecoration
- decoration values- Returns:
- bean
-
getEventType
Description copied from interface:Viewable
Provides metadata information about the type of object the event collection contains.- Returns:
- metadata for the objects in the collection
-
createEventType
protected static EventType createEventType(StatViewAdditionalPropsForge additionalProps, ViewForgeEnv viewForgeEnv)
-