|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.view.ViewSupport
net.esper.view.stat.UnivariateStatisticsView
public final class UnivariateStatisticsView
View for computing statistics, which the view exposes via fields representing the sum, count, standard deviation for sample and for population and variance.
Field Summary |
---|
Fields inherited from class net.esper.view.ViewSupport |
---|
parent |
Constructor Summary | |
---|---|
UnivariateStatisticsView()
Default constructor - required by all views to adhere to the Java bean specification. |
|
UnivariateStatisticsView(java.lang.String fieldName)
Constructor requires the name of the field to use in the parent view to compute the statistics. |
Method Summary | |
---|---|
java.lang.String |
attachesTo(Viewable parentView)
Return null if the view will accept being attached to a particular object. |
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains. |
java.lang.String |
getFieldName()
Returns field name of the field to report statistics on. |
ViewServiceContext |
getViewServiceContext()
Returns the context instances used by the view. |
java.util.Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection. |
void |
setFieldName(java.lang.String fieldName)
Set the field name of the field to report statistics on. |
void |
setParent(Viewable parent)
Called when the View is added to a Viewable object. |
void |
setViewServiceContext(ViewServiceContext viewServiceContext)
Set the services context containing service handles. |
java.lang.String |
toString()
|
void |
update(EventBean[] newData,
EventBean[] oldData)
Notify that data has been added or removed from the Viewable parent. |
Methods inherited from class net.esper.view.ViewSupport |
---|
addView, dumpChildViews, dumpUpdateParams, findDescendent, getParent, getViews, hasViews, removeView, shallowCopyView, updateChildren, updateChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UnivariateStatisticsView()
public UnivariateStatisticsView(java.lang.String fieldName)
fieldName
- is the name of the field within the parent view to use to get numeric data points for this view to
compute the statistics on.Method Detail |
---|
public ViewServiceContext getViewServiceContext()
ContextAwareView
getViewServiceContext
in interface ContextAwareView
public void setViewServiceContext(ViewServiceContext viewServiceContext)
ContextAwareView
setViewServiceContext
in interface ContextAwareView
viewServiceContext
- with service handlespublic void setParent(Viewable parent)
View
setParent
in interface View
setParent
in class ViewSupport
parent
- is the parent that this view is a child ofpublic final java.lang.String getFieldName()
public final void setFieldName(java.lang.String fieldName)
fieldName
- is the field to report statistics onpublic final java.lang.String attachesTo(Viewable parentView)
View
attachesTo
in interface View
parentView
- is the potential parent for this view
public final void update(EventBean[] newData, EventBean[] oldData)
View
update
in interface View
newData
- is the new data that has been added to the parent viewoldData
- is the old data that has been removed from the parent viewpublic final EventType getEventType()
EventCollection
getEventType
in interface EventCollection
public final java.util.Iterator<EventBean> iterator()
EventCollection
iterator
in interface java.lang.Iterable<EventBean>
iterator
in interface EventCollection
public final java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |