public abstract class ExpressionViewFactoryBase extends Object implements DataWindowViewFactory, DataWindowViewWithPrevious
Modifier and Type | Field and Description |
---|---|
protected AggregationServiceFactoryDesc |
aggregationServiceFactoryDesc |
protected EventType |
builtinMapType |
protected ExprNode |
expiryExpression |
protected ExprEvaluator |
expiryExpressionEvaluator |
protected Set<String> |
variableNames |
Constructor and Description |
---|
ExpressionViewFactoryBase() |
Modifier and Type | Method and Description |
---|---|
void |
attach(EventType parentEventType,
StatementContext statementContext,
ViewFactory optionalParentFactory,
List<ViewFactory> parentViewFactories)
Attaches the factory to a parent event type such that the factory can validate
attach requirements and determine an event type for resulting views.
|
boolean |
canReuse(View view,
AgentInstanceContext agentInstanceContext)
Determines if the given view could be used instead of creating a new view,
requires the view factory to compare view type, parameters and other capabilities provided.
|
AggregationServiceFactoryDesc |
getAggregationServiceFactoryDesc() |
EventType |
getBuiltinMapType() |
EventType |
getEventType()
Returns the event type that the view that is created by the view factory would create for events posted
by the view.
|
ExprNode |
getExpiryExpression() |
ExprEvaluator |
getExpiryExpressionEvaluator() |
Set<String> |
getVariableNames() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getViewName, makeView, setViewParameters
makePreviousGetter
protected ExprNode expiryExpression
protected AggregationServiceFactoryDesc aggregationServiceFactoryDesc
protected EventType builtinMapType
protected ExprEvaluator expiryExpressionEvaluator
public void attach(EventType parentEventType, StatementContext statementContext, ViewFactory optionalParentFactory, List<ViewFactory> parentViewFactories) throws ViewParameterException
ViewFactory
attach
in interface ViewFactory
parentEventType
- is the parent event stream's or view factory's event typestatementContext
- contains the services needed for creating a new event typeoptionalParentFactory
- is null when there is no parent view factory, or contains the
parent view factoryparentViewFactories
- is a list of all the parent view factories or empty list if there are noneViewParameterException
- is thrown to indicate that this view factories's view would not play
with the parent view factories viewpublic EventType getEventType()
ViewFactory
getEventType
in interface ViewFactory
public boolean canReuse(View view, AgentInstanceContext agentInstanceContext)
ViewFactory
canReuse
in interface ViewFactory
view
- is the candidate view to compare toagentInstanceContext
- agent instance contextpublic EventType getBuiltinMapType()
public ExprNode getExpiryExpression()
public AggregationServiceFactoryDesc getAggregationServiceFactoryDesc()
public ExprEvaluator getExpiryExpressionEvaluator()