com.espertech.esper.epl.expression.core
Class ExprIdentNodeUtil

java.lang.Object
  extended by com.espertech.esper.epl.expression.core.ExprIdentNodeUtil

public class ExprIdentNodeUtil
extends java.lang.Object


Constructor Summary
ExprIdentNodeUtil()
           
 
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
 

Constructor Detail

ExprIdentNodeUtil

public ExprIdentNodeUtil()
Method Detail

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 infos
unresolvedPropertyName - - property name
streamOrPropertyName - - 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 types
unresolvedPropertyName - property name
streamOrPropertyName - optional stream name
Returns:
property info
Throws:
ExprValidationPropertyException - if the property could not be resolved

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com