public class UnivariateStatisticsView extends ViewSupport implements CloneableView, DerivedValueView
EMPTY_VIEW_ARRAY
Constructor and Description |
---|
UnivariateStatisticsView(AgentInstanceContext agentInstanceContext,
ExprNode fieldExpression,
EventType eventType,
StatViewAdditionalProps additionalProps)
Constructor requires the name of the field to use in the parent view to compute the statistics.
|
Modifier and Type | Method and Description |
---|---|
View |
cloneView()
Duplicates the view.
|
static EventType |
createEventType(StatementContext statementContext,
StatViewAdditionalProps additionalProps,
int streamNum)
Creates the event type for this view.
|
BaseStatisticsBean |
getBaseStatisticsBean() |
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains.
|
ExprNode |
getFieldExpression()
Returns field name of the field to report statistics on.
|
java.lang.Object[] |
getLastValuesEventNew() |
java.util.Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection.
|
static EventBean |
populateMap(BaseStatisticsBean baseStatisticsBean,
EventAdapterService eventAdapterService,
EventType eventType,
StatViewAdditionalProps additionalProps,
java.lang.Object[] lastNewValues) |
void |
setLastValuesEventNew(java.lang.Object[] lastValuesEventNew) |
java.lang.String |
toString() |
void |
update(EventBean[] newData,
EventBean[] oldData)
Notify that data has been added or removed from the Viewable parent.
|
addView, addView, dumpChildViews, dumpUpdateParams, dumpUpdateParams, findDescendent, findViewIndex, getParent, getViews, hasViews, removeAllViews, removeView, removeView, setParent, updateChildren
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addView, getViews, hasViews, removeAllViews, removeView
public UnivariateStatisticsView(AgentInstanceContext agentInstanceContext, ExprNode fieldExpression, EventType eventType, StatViewAdditionalProps additionalProps)
fieldExpression
- is the expression to use to get numeric data points for this view to
compute the statistics on.public View cloneView()
CloneableView
Expected to return a same view in initialized state for grouping.
cloneView
in interface CloneableView
public final ExprNode getFieldExpression()
public void update(EventBean[] newData, EventBean[] oldData)
View
public final EventType getEventType()
EventCollection
getEventType
in interface EventCollection
public final java.util.Iterator<EventBean> iterator()
EventCollection
iterator
in interface EventCollection
iterator
in interface java.lang.Iterable<EventBean>
public final java.lang.String toString()
toString
in class java.lang.Object
public static EventBean populateMap(BaseStatisticsBean baseStatisticsBean, EventAdapterService eventAdapterService, EventType eventType, StatViewAdditionalProps additionalProps, java.lang.Object[] lastNewValues)
public static EventType createEventType(StatementContext statementContext, StatViewAdditionalProps additionalProps, int streamNum)
statementContext
- is the event adapter servicepublic BaseStatisticsBean getBaseStatisticsBean()
public java.lang.Object[] getLastValuesEventNew()
public void setLastValuesEventNew(java.lang.Object[] lastValuesEventNew)