public class NamedWindowRootViewInstance extends ViewSupport
EMPTY_VIEW_ARRAY
Constructor and Description |
---|
NamedWindowRootViewInstance(NamedWindowRootView rootView,
AgentInstanceContext agentInstanceContext) |
Modifier and Type | Method and Description |
---|---|
void |
addExplicitIndex(boolean unique,
java.lang.String namedWindowName,
java.lang.String indexName,
java.util.List<CreateIndexItem> columns)
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.
|
NamedWindowOnExprBaseView |
addOnExpr(NamedWindowOnExprFactory onExprFactory,
AgentInstanceContext agentInstanceContext,
ExprNode joinExpr,
EventType filterEventType,
ResultSetProcessor resultSetProcessor,
java.lang.String streamNameOn,
ExcludePlanHint excludePlanHint,
IndexHint indexHint)
Add an on-trigger view that, using a lookup strategy, looks up from the named window and may select or delete rows.
|
void |
destroy()
Destroy and clear resources.
|
SubordTableLookupStrategy |
getAddSubqueryLookupStrategy(AgentInstanceContext accessedByAIContext,
EventType[] eventTypesPerStream,
SubordPropPlan joinDesc,
boolean fullTableScan,
int subqueryNum,
IndexHint optionalIndexHint) |
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains.
|
IndexMultiKey[] |
getIndexes() |
VirtualDWView |
getVirtualDataWindow() |
boolean |
isVirtualDataWindow() |
java.util.Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection.
|
void |
postLoad() |
void |
removeExplicitIndex(java.lang.String indexName)
Drop an explicit index.
|
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 |
removeOnExpr(NamedWindowLookupStrategy strategy)
Unregister an on-delete statement view, using the strategy as a key to remove a reference to the index table
used by the strategy.
|
void |
removeSubqueryLookupStrategy(SubordTableLookupStrategy namedWindowSubqueryLookup) |
void |
setDataWindowContents(java.lang.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.
|
java.util.Collection<EventBean> |
snapshot(FilterSpecCompiled optionalFilter,
java.lang.annotation.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(StatementAgentInstancePostLoadIndexVisitor visitor) |
addView, addView, dumpChildViews, dumpUpdateParams, dumpUpdateParams, findDescendent, findViewIndex, getParent, getViews, hasViews, removeAllViews, removeView, removeView, updateChildren
public NamedWindowRootViewInstance(NamedWindowRootView rootView, AgentInstanceContext agentInstanceContext)
public IndexMultiKey[] getIndexes()
public void setDataWindowContents(java.lang.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
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()
EventCollection
public java.util.Iterator<EventBean> iterator()
EventCollection
public void destroy()
public java.util.Collection<EventBean> snapshot(FilterSpecCompiled optionalFilter, java.lang.annotation.Annotation[] annotations)
optionalFilter
- to index lookuppublic void addExplicitIndex(boolean unique, java.lang.String namedWindowName, java.lang.String indexName, java.util.List<CreateIndexItem> columns) throws ExprValidationException
unique
- indicator whether uniquenamedWindowName
- window nameindexName
- indexnamecolumns
- properties indexedExprValidationException
- if the index fails to be validpublic NamedWindowOnExprBaseView addOnExpr(NamedWindowOnExprFactory onExprFactory, AgentInstanceContext agentInstanceContext, ExprNode joinExpr, EventType filterEventType, ResultSetProcessor resultSetProcessor, java.lang.String streamNameOn, ExcludePlanHint excludePlanHint, IndexHint indexHint)
public void removeOnExpr(NamedWindowLookupStrategy strategy)
strategy
- to use for deleting eventspublic void removeExplicitIndex(java.lang.String indexName)
indexName
- to droppublic SubordTableLookupStrategy getAddSubqueryLookupStrategy(AgentInstanceContext accessedByAIContext, EventType[] eventTypesPerStream, SubordPropPlan joinDesc, boolean fullTableScan, int subqueryNum, IndexHint optionalIndexHint)
public void removeSubqueryLookupStrategy(SubordTableLookupStrategy namedWindowSubqueryLookup)
public boolean isVirtualDataWindow()
public VirtualDWView getVirtualDataWindow()
public void postLoad()
public void visitIndexes(StatementAgentInstancePostLoadIndexVisitor visitor)