public class ExprSubselectExistsNode extends ExprSubselectNode
ExprSubselectNode.SubqueryAggregationType
EMPTY_SUBSELECT_ARRAY, filterExpr, havingExpr, rawEventType, selectAsNames, selectClause, selectClauseEvaluator, statementName, subselectAggregationService, subselectNumber
Constructor and Description |
---|
ExprSubselectExistsNode(StatementSpecRaw statementSpec)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(EventBean[] eventsPerStream,
boolean isNewData,
Collection<EventBean> matchingEvents,
ExprEvaluatorContext exprEvaluatorContext)
Evaluate the lookup expression returning an evaluation result object.
|
Collection<EventBean> |
evaluateGetCollEvents(EventBean[] eventsPerStream,
boolean isNewData,
Collection<EventBean> matchingEvents,
ExprEvaluatorContext context) |
Collection |
evaluateGetCollScalar(EventBean[] eventsPerStream,
boolean isNewData,
Collection<EventBean> matchingEvents,
ExprEvaluatorContext exprEvaluatorContext) |
EventBean |
evaluateGetEventBean(EventBean[] eventsPerStream,
boolean isNewData,
Collection<EventBean> matchingEvents,
ExprEvaluatorContext exprEvaluatorContext) |
EventBean |
evaluateGetEventBean(EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context) |
Object[][] |
evaluateTypableMulti(EventBean[] eventsPerStream,
boolean isNewData,
Collection<EventBean> matchingEvents,
ExprEvaluatorContext exprEvaluatorContext) |
Object[] |
evaluateTypableSingle(EventBean[] eventsPerStream,
boolean isNewData,
Collection<EventBean> matchingEvents,
ExprEvaluatorContext exprEvaluatorContext) |
Class |
getComponentTypeCollection() |
EventType |
getEventTypeCollection(EventAdapterService eventAdapterService,
int statementId) |
EventType |
getEventTypeSingle(EventAdapterService eventAdapterService,
int statementId) |
Class |
getType()
Returns the type that the node's evaluate method returns an instance of.
|
boolean |
isAllowMultiColumnSelect() |
LinkedHashMap<String,Object> |
typableGetRowProperties() |
void |
validateSubquery(ExprValidationContext validationContext) |
equalsNode, evaluate, evaluateGetROCollectionEvents, evaluateGetROCollectionScalar, evaluateTypableMulti, evaluateTypableSingle, getExprEvaluator, getFilterExpr, getFilterSubqueryStreamTypes, getHavingExpr, getPrecedence, getRawEventType, getRowProperties, getSelectClause, getStatementSpecCompiled, getStatementSpecRaw, getSubselectAggregationService, getSubselectAggregationType, getSubselectNumber, isConstantResult, isFilterStreamSubselect, isMultirow, setFilterExpr, setFilterStreamSubselect, setFilterSubqueryStreamTypes, setHavingExpr, setRawEventType, setSelectAsNames, setSelectClause, setStatementSpecCompiled, setStrategy, setSubselectAggregationService, setSubselectAggregationType, toArray, toPrecedenceFreeEPL, validate
accept, accept, acceptChildnodes, addChildNode, addChildNodes, addChildNodeToFront, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes, toEPL
public ExprSubselectExistsNode(StatementSpecRaw statementSpec)
statementSpec
- is the lookup statement spec from the parser, unvalidatedpublic Class getType()
ExprEvaluator
public void validateSubquery(ExprValidationContext validationContext) throws ExprValidationException
validateSubquery
in class ExprSubselectNode
ExprValidationException
public Object evaluate(EventBean[] eventsPerStream, boolean isNewData, Collection<EventBean> matchingEvents, ExprEvaluatorContext exprEvaluatorContext)
ExprSubselectNode
evaluate
in class ExprSubselectNode
eventsPerStream
- is the events for each stream in a joinisNewData
- is true for new data, or false for old datamatchingEvents
- is filtered results from the table of stored lookup eventsexprEvaluatorContext
- context for expression evalauationpublic LinkedHashMap<String,Object> typableGetRowProperties()
typableGetRowProperties
in class ExprSubselectNode
public Object[] evaluateTypableSingle(EventBean[] eventsPerStream, boolean isNewData, Collection<EventBean> matchingEvents, ExprEvaluatorContext exprEvaluatorContext)
evaluateTypableSingle
in class ExprSubselectNode
public Object[][] evaluateTypableMulti(EventBean[] eventsPerStream, boolean isNewData, Collection<EventBean> matchingEvents, ExprEvaluatorContext exprEvaluatorContext)
evaluateTypableMulti
in class ExprSubselectNode
public Collection<EventBean> evaluateGetCollEvents(EventBean[] eventsPerStream, boolean isNewData, Collection<EventBean> matchingEvents, ExprEvaluatorContext context)
evaluateGetCollEvents
in class ExprSubselectNode
public EventBean evaluateGetEventBean(EventBean[] eventsPerStream, boolean isNewData, Collection<EventBean> matchingEvents, ExprEvaluatorContext exprEvaluatorContext)
evaluateGetEventBean
in class ExprSubselectNode
public EventType getEventTypeCollection(EventAdapterService eventAdapterService, int statementId)
public Class getComponentTypeCollection() throws ExprValidationException
ExprValidationException
public Collection evaluateGetCollScalar(EventBean[] eventsPerStream, boolean isNewData, Collection<EventBean> matchingEvents, ExprEvaluatorContext exprEvaluatorContext)
evaluateGetCollScalar
in class ExprSubselectNode
public boolean isAllowMultiColumnSelect()
isAllowMultiColumnSelect
in class ExprSubselectNode
public EventType getEventTypeSingle(EventAdapterService eventAdapterService, int statementId) throws ExprValidationException
ExprValidationException
public EventBean evaluateGetEventBean(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
evaluateGetEventBean
in interface ExprEvaluatorEnumeration
evaluateGetEventBean
in class ExprSubselectNode