com.espertech.esper.epl.expression.core
Class ExprIdentNodeUtil
java.lang.Object
com.espertech.esper.epl.expression.core.ExprIdentNodeUtil
public class ExprIdentNodeUtil
- extends java.lang.Object
Method Summary |
static Pair<PropertyResolutionDescriptor,java.lang.String> |
getTypeFromStream(StreamTypeService streamTypeService,
java.lang.String propertyNameNestable,
boolean explicitPropertiesOnly,
boolean obtainFragment)
|
protected static Pair<PropertyResolutionDescriptor,java.lang.String> |
getTypeFromStream(StreamTypeService streamTypeService,
java.lang.String unresolvedPropertyName,
java.lang.String streamOrPropertyName,
boolean obtainFragment)
Determine stream id and property type given an unresolved property name and
a stream name that may also be part of the property name. |
protected static Pair<PropertyResolutionDescriptor,java.lang.String> |
getTypeFromStreamExplicitProperties(StreamTypeService streamTypeService,
java.lang.String unresolvedPropertyName,
java.lang.String streamOrPropertyName,
boolean obtainFragment)
This method only resolves against explicitly-listed properties (for use with XML or other types that allow any name as a property name). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExprIdentNodeUtil
public ExprIdentNodeUtil()
getTypeFromStream
public static Pair<PropertyResolutionDescriptor,java.lang.String> getTypeFromStream(StreamTypeService streamTypeService,
java.lang.String propertyNameNestable,
boolean explicitPropertiesOnly,
boolean obtainFragment)
throws ExprValidationPropertyException
- Throws:
ExprValidationPropertyException
getTypeFromStream
protected static Pair<PropertyResolutionDescriptor,java.lang.String> getTypeFromStream(StreamTypeService streamTypeService,
java.lang.String unresolvedPropertyName,
java.lang.String streamOrPropertyName,
boolean obtainFragment)
throws ExprValidationPropertyException
- Determine stream id and property type given an unresolved property name and
a stream name that may also be part of the property name.
For example: select s0.p1 from... p1 is the property name, s0 the stream name, however this could also be a nested property
- Parameters:
streamTypeService
- - service for type infosunresolvedPropertyName
- - property namestreamOrPropertyName
- - stream name, this can also be the first part of the property name
- Returns:
- pair of stream number and property type
- Throws:
ExprValidationPropertyException
- if no such property exists
getTypeFromStreamExplicitProperties
protected static Pair<PropertyResolutionDescriptor,java.lang.String> getTypeFromStreamExplicitProperties(StreamTypeService streamTypeService,
java.lang.String unresolvedPropertyName,
java.lang.String streamOrPropertyName,
boolean obtainFragment)
throws ExprValidationPropertyException
- This method only resolves against explicitly-listed properties (for use with XML or other types that allow any name as a property name).
- Parameters:
streamTypeService
- stream typesunresolvedPropertyName
- property namestreamOrPropertyName
- optional stream name
- Returns:
- property info
- Throws:
ExprValidationPropertyException
- if the property could not be resolved