|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.expression.core.ExprNodeBase
com.espertech.esper.epl.expression.core.ExprIdentNodeImpl
public class ExprIdentNodeImpl
Represents an stream property identifier in a filter expressiun tree.
Constructor Summary | |
---|---|
ExprIdentNodeImpl(EventType eventType,
java.lang.String propertyName,
int streamNumber)
|
|
ExprIdentNodeImpl(java.lang.String unresolvedPropertyName)
Ctor. |
|
ExprIdentNodeImpl(java.lang.String unresolvedPropertyName,
java.lang.String streamOrPropertyName)
Ctor. |
Method Summary | |
---|---|
boolean |
equalsNode(ExprNode node)
Return true if a expression node semantically equals the current node, or false if not. |
ExprEvaluator |
getExprEvaluator()
|
ExprIdentNodeEvaluator |
getExprEvaluatorIdent()
|
FilterSpecLookupable |
getFilterLookupable()
|
boolean |
getFilterLookupEligible()
|
java.lang.String |
getFullUnresolvedName()
Returns the unresolved property name in it's complete form, including the stream name if there is one. |
ExprPrecedenceEnum |
getPrecedence()
Returns precedence. |
java.lang.String |
getResolvedPropertyName()
Return property name as resolved by lookup in streams. |
java.lang.String |
getResolvedPropertyNameRoot()
Returns the root of the resolved property name, if any. |
java.lang.String |
getResolvedStreamName()
Returns stream name as resolved by lookup of property in streams. |
java.lang.String |
getRootPropertyNameIfAny()
|
int |
getStreamId()
Returns stream id supplying the property value. |
java.lang.String |
getStreamOrPropertyName()
For unit testing, returns stream or property name candidate. |
java.lang.Integer |
getStreamReferencedIfAny()
|
java.lang.Class |
getType()
|
java.lang.String |
getUnresolvedPropertyName()
For unit testing, returns unresolved property name. |
boolean |
isConstantResult()
Returns true if the expression node's evaluation value doesn't depend on any events data, as must be determined at validation time, which is bottom-up and therefore reliably allows each node to determine constant value. |
void |
setStreamOrPropertyName(java.lang.String streamOrPropertyName)
Set name. |
void |
toPrecedenceFreeEPL(java.io.StringWriter writer)
|
static void |
toPrecedenceFreeEPL(java.io.StringWriter writer,
java.lang.String streamOrPropertyName,
java.lang.String unresolvedPropertyName)
|
java.lang.String |
toString()
|
ExprNode |
validate(ExprValidationContext validationContext)
|
Methods inherited from class com.espertech.esper.epl.expression.core.ExprNodeBase |
---|
accept, accept, acceptChildnodes, addChildNode, addChildNodes, addChildNodeToFront, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes, toEPL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.espertech.esper.epl.expression.core.ExprNode |
---|
accept, accept, acceptChildnodes, addChildNode, addChildNodes, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes, toEPL |
Constructor Detail |
---|
public ExprIdentNodeImpl(java.lang.String unresolvedPropertyName)
unresolvedPropertyName
- is the event property name in unresolved form, ie. unvalidated against streamspublic ExprIdentNodeImpl(java.lang.String unresolvedPropertyName, java.lang.String streamOrPropertyName)
unresolvedPropertyName
- is the event property name in unresolved form, ie. unvalidated against streamsstreamOrPropertyName
- is the stream name, or if not a valid stream name a possible nested property name
in one of the streams.public ExprIdentNodeImpl(EventType eventType, java.lang.String propertyName, int streamNumber)
Method Detail |
---|
public ExprEvaluator getExprEvaluator()
getExprEvaluator
in interface ExprNode
public java.lang.String getUnresolvedPropertyName()
getUnresolvedPropertyName
in interface ExprIdentNode
public java.lang.String getStreamOrPropertyName()
getStreamOrPropertyName
in interface ExprIdentNode
public void setStreamOrPropertyName(java.lang.String streamOrPropertyName)
setStreamOrPropertyName
in interface ExprIdentNode
streamOrPropertyName
- to usepublic java.lang.String getFullUnresolvedName()
getFullUnresolvedName
in interface ExprIdentNode
public boolean getFilterLookupEligible()
getFilterLookupEligible
in interface ExprFilterOptimizableNode
public FilterSpecLookupable getFilterLookupable()
getFilterLookupable
in interface ExprFilterOptimizableNode
public ExprNode validate(ExprValidationContext validationContext) throws ExprValidationException
validate
in interface ExprValidator
ExprValidationException
public boolean isConstantResult()
ExprNode
isConstantResult
in interface ExprNode
public int getStreamId()
getStreamId
in interface ExprIdentNode
public java.lang.Integer getStreamReferencedIfAny()
getStreamReferencedIfAny
in interface ExprStreamRefNode
public java.lang.String getRootPropertyNameIfAny()
getRootPropertyNameIfAny
in interface ExprStreamRefNode
public java.lang.Class getType()
public java.lang.String getResolvedStreamName()
getResolvedStreamName
in interface ExprIdentNode
public java.lang.String getResolvedPropertyName()
getResolvedPropertyName
in interface ExprIdentNode
public java.lang.String getResolvedPropertyNameRoot()
getResolvedPropertyNameRoot
in interface ExprIdentNode
public java.lang.String toString()
toString
in class java.lang.Object
public void toPrecedenceFreeEPL(java.io.StringWriter writer)
toPrecedenceFreeEPL
in class ExprNodeBase
public static void toPrecedenceFreeEPL(java.io.StringWriter writer, java.lang.String streamOrPropertyName, java.lang.String unresolvedPropertyName)
public ExprPrecedenceEnum getPrecedence()
ExprNode
getPrecedence
in interface ExprNode
public boolean equalsNode(ExprNode node)
ExprNode
Concrete implementations should compare the type and any additional information that impact the evaluation of a node.
equalsNode
in interface ExprNode
node
- to compare to
public ExprIdentNodeEvaluator getExprEvaluatorIdent()
getExprEvaluatorIdent
in interface ExprIdentNode
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |