|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.core.StreamTypeServiceImpl
public class StreamTypeServiceImpl
Implementation that provides stream number and property type information.
Constructor Summary | |
---|---|
StreamTypeServiceImpl(EventType[] eventTypes,
String[] streamNames)
Ctor. |
|
StreamTypeServiceImpl(LinkedHashMap<String,EventType> namesAndTypes,
boolean isStreamZeroUnambigous,
boolean requireStreamNames)
Ctor. |
Method Summary | |
---|---|
EventType[] |
getEventTypes()
Returns an array of event types for each event stream in the order declared. |
String[] |
getStreamNames()
Returns an array of event stream names in the order declared. |
PropertyResolutionDescriptor |
resolveByPropertyName(String propertyName)
Returns the offset of the stream and the type of the property for the given property name, by looking through the types offered and matching up. |
PropertyResolutionDescriptor |
resolveByStreamAndPropName(String streamAndPropertyName)
Returns the offset of the stream and the type of the property for the given property name, by looking through the types offered and matching up. |
PropertyResolutionDescriptor |
resolveByStreamAndPropName(String streamName,
String propertyName)
Returns the offset of the stream and the type of the property for the given property name, by using the specified stream name to resolve the property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamTypeServiceImpl(EventType[] eventTypes, String[] streamNames)
eventTypes
- - array of event types, one for each streamstreamNames
- - array of stream names, one for each streampublic StreamTypeServiceImpl(LinkedHashMap<String,EventType> namesAndTypes, boolean isStreamZeroUnambigous, boolean requireStreamNames)
namesAndTypes
- is the ordered list of stream names and event types available (stream zero to N)isStreamZeroUnambigous
- indicates whether when a property is found in stream zero and another stream an exception should be
thrown or the stream zero should be assumedrequireStreamNames
- is true to indicate that stream names are required for any non-zero streams (for subqueries)Method Detail |
---|
public EventType[] getEventTypes()
StreamTypeService
getEventTypes
in interface StreamTypeService
public String[] getStreamNames()
StreamTypeService
getStreamNames
in interface StreamTypeService
public PropertyResolutionDescriptor resolveByPropertyName(String propertyName) throws DuplicatePropertyException, PropertyNotFoundException
StreamTypeService
This method considers only a property name and looks at all streams to resolve the property name.
resolveByPropertyName
in interface StreamTypeService
propertyName
- - property name in event
DuplicatePropertyException
- to indicate property was found twice
PropertyNotFoundException
- to indicate property could not be resolvedpublic PropertyResolutionDescriptor resolveByStreamAndPropName(String streamName, String propertyName) throws PropertyNotFoundException, StreamNotFoundException
StreamTypeService
This method considers and explicit stream name and property name, both parameters are required.
resolveByStreamAndPropName
in interface StreamTypeService
streamName
- - name of stream, requiredpropertyName
- - property name in event, , required
PropertyNotFoundException
- to indicate property could not be resolved
StreamNotFoundException
- to indicate stream name could not be resolvedpublic PropertyResolutionDescriptor resolveByStreamAndPropName(String streamAndPropertyName) throws DuplicatePropertyException, PropertyNotFoundException
StreamTypeService
This method considers a single property name that may or may not be prefixed by a stream name. The resolution first attempts to find the property name itself, then attempts to consider a stream name that may be part of the property name.
resolveByStreamAndPropName
in interface StreamTypeService
streamAndPropertyName
- - stream name and property name (e.g. s0.p0) or just a property name (p0)
DuplicatePropertyException
- to indicate property was found twice
PropertyNotFoundException
- to indicate property could not be resolved
|
© 2007 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 |