|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.view.ViewSupport
com.espertech.esper.view.std.GroupByViewReclaimAged
public class GroupByViewReclaimAged
Field Summary | |
---|---|
protected AgentInstanceViewFactoryChainContext |
agentInstanceContext
|
protected java.lang.String[] |
propertyNames
|
protected java.util.Map<java.lang.Object,GroupByViewAgedEntry> |
subViewsPerKey
|
Fields inherited from class com.espertech.esper.view.ViewSupport |
---|
EMPTY_VIEW_ARRAY, parent |
Constructor Summary | |
---|---|
GroupByViewReclaimAged(AgentInstanceViewFactoryChainContext agentInstanceContext,
ExprNode[] criteriaExpressions,
ExprEvaluator[] criteriaEvaluators,
double reclaimMaxAge,
double reclaimFrequency)
Constructor. |
Method Summary | |
---|---|
View |
cloneView()
Duplicates the view. |
ExprNode[] |
getCriteriaExpressions()
Returns the field name that provides the key valie by which to group by. |
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains. |
java.util.Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection. |
boolean |
removeView(View view)
Remove a view. |
java.lang.String |
toString()
|
void |
update(EventBean[] newData,
EventBean[] oldData)
Notify that data has been added or removed from the Viewable parent. |
void |
visitViewContainer(ViewDataVisitorContained viewDataVisitor)
|
Methods inherited from class com.espertech.esper.view.ViewSupport |
---|
addView, addView, dumpChildViews, dumpUpdateParams, dumpUpdateParams, findDescendent, findViewIndex, getParent, getViews, hasViews, removeAllViews, removeView, setParent, updateChildren, updateChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.espertech.esper.view.View |
---|
getParent, setParent |
Methods inherited from interface com.espertech.esper.view.Viewable |
---|
addView, getViews, hasViews, removeAllViews |
Field Detail |
---|
protected final AgentInstanceViewFactoryChainContext agentInstanceContext
protected java.lang.String[] propertyNames
protected final java.util.Map<java.lang.Object,GroupByViewAgedEntry> subViewsPerKey
Constructor Detail |
---|
public GroupByViewReclaimAged(AgentInstanceViewFactoryChainContext agentInstanceContext, ExprNode[] criteriaExpressions, ExprEvaluator[] criteriaEvaluators, double reclaimMaxAge, double reclaimFrequency)
agentInstanceContext
- contains required view servicescriteriaExpressions
- is the fields from which to pull the values to group byreclaimMaxAge
- age after which to reclaim groupreclaimFrequency
- frequency in which to check for groups to reclaimMethod Detail |
---|
public View cloneView()
CloneableView
Expected to return a same view in initialized state for grouping.
cloneView
in interface CloneableView
public ExprNode[] getCriteriaExpressions()
getCriteriaExpressions
in interface GroupByView
public final EventType getEventType()
EventCollection
getEventType
in interface EventCollection
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 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 void visitViewContainer(ViewDataVisitorContained viewDataVisitor)
visitViewContainer
in interface ViewDataVisitableContainer
public boolean removeView(View view)
Viewable
removeView
in interface Viewable
removeView
in class ViewSupport
view
- to remove
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |