|
||||||||||
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()
Empty constructor - views are Java beans. |
|
MultiDimStatsView(String[] derivedMeasures,
String measureField,
String columnField,
String rowField,
String pageField)
Constructor. |
Method Summary | |
---|---|
protected static EventType |
createEventType(ViewServiceContext viewServiceContext)
|
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. |
ViewServiceContext |
getViewServiceContext()
Returns the context instances used by the view. |
Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection. |
void |
setColumnField(String columnField)
Sets the name of the field to extract the column values from. |
void |
setDerivedMeasures(String[] derivedMeasures)
Sets the names of measures to derive from facts. |
void |
setMeasureField(String measureField)
Sets the name of the field to extract the measure values from. |
void |
setPageField(String pageField)
Sets the name of the field to extract the page values from. |
void |
setParent(Viewable parent)
Called when the View is added to a Viewable object. |
void |
setRowField(String rowField)
Sets the name of the field to extract the row values from. |
void |
setViewServiceContext(ViewServiceContext viewServiceContext)
Set the services context containing service handles. |
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, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiDimStatsView()
public MultiDimStatsView(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 membersMethod Detail |
---|
public ViewServiceContext getViewServiceContext()
ContextAwareView
getViewServiceContext
in interface ContextAwareView
public void setViewServiceContext(ViewServiceContext viewServiceContext)
ContextAwareView
setViewServiceContext
in interface ContextAwareView
viewServiceContext
- with service handlespublic final String[] getDerivedMeasures()
public final void setDerivedMeasures(String[] derivedMeasures)
derivedMeasures
- measure namespublic final String getMeasureField()
public final void setMeasureField(String measureField)
measureField
- field for measure valuespublic final String getColumnField()
public final void setColumnField(String columnField)
columnField
- field for column valuespublic final String getRowField()
public final void setRowField(String rowField)
rowField
- field for row valuespublic final String getPageField()
public final void setPageField(String pageField)
pageField
- field for page valuesprotected 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(ViewServiceContext viewServiceContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |