public final class MergeView extends ViewSupport implements CloneableView, MergeViewMarker
EMPTY_VIEW_ARRAY
Constructor and Description |
---|
MergeView(AgentInstanceViewFactoryChainContext agentInstanceContext,
ExprNode[] groupCriteria,
EventType resultEventType,
boolean removable)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addParentView(AddPropertyValueView parentView)
Add a parent data merge view.
|
View |
cloneView()
Duplicates the view.
|
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains.
|
ExprNode[] |
getGroupFieldNames()
Returns the field name that contains the values to group by.
|
java.util.Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection.
|
void |
removeParentView(View view) |
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 MergeView(AgentInstanceViewFactoryChainContext agentInstanceContext, ExprNode[] groupCriteria, EventType resultEventType, boolean removable)
groupCriteria
- is the fields from which to pull the value to group byresultEventType
- is passed by the factory as the factory adds the merged fields to an event typepublic View cloneView()
CloneableView
Expected to return a same view in initialized state for grouping.
cloneView
in interface CloneableView
public final ExprNode[] getGroupFieldNames()
getGroupFieldNames
in interface MergeViewMarker
public final void addParentView(AddPropertyValueView parentView)
addParentView
in interface MergeViewMarker
parentView
- is the parent data merge view to addpublic final EventType getEventType()
EventCollection
getEventType
in interface EventCollection
public final void update(EventBean[] newData, EventBean[] oldData)
View
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 void removeParentView(View view)