public class NamedWindowRootViewInstance extends ViewSupport
child, parent
Constructor and Description |
---|
NamedWindowRootViewInstance(NamedWindowRootView rootView,
AgentInstanceContext agentInstanceContext,
EventTableIndexMetadata eventTableIndexMetadata) |
Modifier and Type | Method and Description |
---|---|
void |
addExplicitIndex(String explicitIndexName,
String explicitIndexModuleName,
QueryPlanIndexItem explicitIndexDesc,
boolean isRecoveringResilient)
Add an explicit index.
|
void |
addNewData(EventBean[] newData)
Called by tail view to indicate that the data window view has new events that must be added to index tables.
|
void |
destroy()
Destroy and clear resources.
|
AgentInstanceContext |
getAgentInstanceContext() |
Iterable<EventBean> |
getDataWindowContents() |
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains.
|
IndexMultiKey[] |
getIndexes() |
EventTableIndexRepository |
getIndexRepository() |
VirtualDWView |
getVirtualDataWindow() |
boolean |
isParentBatchWindow() |
boolean |
isVirtualDataWindow() |
Iterator<EventBean> |
iterator()
Allows iteration through all elements in this viewable.
|
void |
removeOldData(EventBean[] oldData)
Called by tail view to indicate that the data window view exired events that must be removed from index tables.
|
void |
setDataWindowContents(Iterable<EventBean> dataWindowContents)
Sets the iterator to use to obtain current named window data window contents.
|
void |
setParent(Viewable parent)
Called when the View is added to a Viewable object.
|
Collection<EventBean> |
snapshot(QueryGraph queryGraph,
Annotation[] annotations)
Return a snapshot using index lookup filters.
|
void |
update(EventBean[] newData,
EventBean[] oldData)
Notify that data has been added or removed from the Viewable parent.
|
void |
visitIndexes(EventTableVisitor visitor) |
getChild, getParent, setChild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public NamedWindowRootViewInstance(NamedWindowRootView rootView, AgentInstanceContext agentInstanceContext, EventTableIndexMetadata eventTableIndexMetadata)
public AgentInstanceContext getAgentInstanceContext()
public IndexMultiKey[] getIndexes()
public void setDataWindowContents(Iterable<EventBean> dataWindowContents)
dataWindowContents
- iterator over events help by named windowpublic void removeOldData(EventBean[] oldData)
oldData
- removed stream of the data windowpublic void addNewData(EventBean[] newData)
newData
- new eventpublic void update(EventBean[] newData, EventBean[] oldData)
View
If the call to update contains new (inserted) data, then the first argument will be a non-empty list and the second will be empty. Similarly, if the call is a notification of deleted data, then the first argument will be empty and the second will be non-empty. Either the newData or oldData will be non-null. This method won't be called with both arguments being null, but either one could be null. The same is true for zero-length arrays. Either newData or oldData will be non-empty. If both are non-empty, then the update is a modification notification.
When update() is called on a view by the parent object, the data in newData will be in the collection of the parent, and its data structures will be arranged to reflect that. The data in oldData will not be in the parent's data structures, and any access to the parent will indicate that that data is no longer there.
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 void setParent(Viewable parent)
View
setParent
in interface View
setParent
in class ViewSupport
parent
- is the parent that this view is a child ofpublic EventType getEventType()
Viewable
public Iterator<EventBean> iterator()
Viewable
public void destroy()
public Collection<EventBean> snapshot(QueryGraph queryGraph, Annotation[] annotations)
annotations
- annotationsqueryGraph
- query graphpublic void addExplicitIndex(String explicitIndexName, String explicitIndexModuleName, QueryPlanIndexItem explicitIndexDesc, boolean isRecoveringResilient) throws ExprValidationException
explicitIndexDesc
- index descriptorexplicitIndexModuleName
- module nameisRecoveringResilient
- indicator for recoveringexplicitIndexName
- index nameExprValidationException
- if the index fails to be validpublic void visitIndexes(EventTableVisitor visitor)
public boolean isParentBatchWindow()
public EventTableIndexRepository getIndexRepository()
public boolean isVirtualDataWindow()
public VirtualDWView getVirtualDataWindow()
Copyright © 2005–2018. All rights reserved.