|
||||||||||
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.MultiDimStatsView
public final class MultiDimStatsView
This view compiles OLAP cubes for the specified fields. New data from the parent view is entered into one or more fact cubes (see MultidimCube). Old data from the parent view is removed from a fact cube. The dimensions of the fact cube are specified as parameters to the view. The fact cube can be one-dimensional, two-dimensional (tabular) or 3-dimenstional (tabular with pages). Parameters are: A mandatory array of derived measure names, such as "count", "stddev" etc., (see ViewFieldEnum) A mandatory measure field name. This field supplies the fact values in the cells of the cube. A mandatory column field name. This field supplies the members of dimension zero (column, 1-dim). An optional row field name. This field supplies the members of dimension one (row, 2-dim). An optional page field name. This field supplies the members of dimension two (page, 3-dim). The view post new data to child views that contains a Map with the Cube (see Cube). It does not post old data.
Field Summary |
---|
Fields inherited from class net.esper.view.ViewSupport |
---|
parent |
Constructor Summary | |
---|---|
MultiDimStatsView(StatementContext statementContext,
String[] derivedMeasures,
String measureField,
String columnField,
String rowField,
String pageField)
Constructor. |
Method Summary | |
---|---|
View |
cloneView(StatementContext statementContext)
Duplicates the view. |
protected static EventType |
createEventType(StatementContext statementContext)
Creates the event type for this view. |
String |
getColumnField()
Returns the name of the field to extract the column values from. |
String[] |
getDerivedMeasures()
Returns the names of measures to derive from facts. |
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains. |
protected MultidimCube<BaseStatisticsBean> |
getFactCube()
For unit testing, returns fact cube. |
String |
getMeasureField()
Returns the name of the field to extract the measure values from. |
String |
getPageField()
Returns the name of the field to extract the page values from. |
String |
getRowField()
Returns the name of the field to extract the row values from. |
Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection. |
void |
setParent(Viewable parent)
Called when the View is added to a Viewable object. |
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, updateChildren, updateChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiDimStatsView(StatementContext statementContext, String[] derivedMeasures, String measureField, String columnField, String rowField, String pageField)
derivedMeasures
- is an array of ViewFieldEnum names defining the measures to derivemeasureField
- defines the field supplying measurescolumnField
- defines the field supplying column dimension membersrowField
- defines an optional field supplying row dimension memberspageField
- defines an optional field supplying page dimension membersstatementContext
- contains required view servicesMethod Detail |
---|
public View cloneView(StatementContext statementContext)
CloneableView
Expected to return a same view in initialized state for grouping.
cloneView
in interface CloneableView
statementContext
- is services for the view
public final String[] getDerivedMeasures()
public final String getMeasureField()
public final String getColumnField()
public final String getRowField()
public final String getPageField()
protected final MultidimCube<BaseStatisticsBean> getFactCube()
public final 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 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 Iterator<EventBean> iterator()
EventCollection
iterator
in interface Iterable<EventBean>
iterator
in interface EventCollection
protected static EventType createEventType(StatementContext statementContext)
statementContext
- is the event adapter service
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |