net.esper.eql.expression
Interface StreamTypeService

All Known Implementing Classes:
StreamTypeServiceImpl

public interface StreamTypeService

Service supplying stream number and property type information.


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 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.
 

Method Detail

resolveByPropertyName

PropertyResolutionDescriptor resolveByPropertyName(String propertyName)
                                                   throws DuplicatePropertyException,
                                                          PropertyNotFoundException
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.

Parameters:
propertyName - - property name in event
Returns:
descriptor with stream number, property type and property name
Throws:
DuplicatePropertyException - to indicate property was found twice
PropertyNotFoundException - to indicate property could not be resolved

resolveByStreamAndPropName

PropertyResolutionDescriptor resolveByStreamAndPropName(String streamName,
                                                        String propertyName)
                                                        throws PropertyNotFoundException,
                                                               StreamNotFoundException
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.

Parameters:
streamName - - name of stream
propertyName - - property name in event
Returns:
descriptor with stream number, property type and property name
Throws:
PropertyNotFoundException - to indicate property could not be resolved
StreamNotFoundException - to indicate stream name could not be resolved

getStreamNames

String[] getStreamNames()
Returns an array of event stream names in the order declared.

Returns:
stream names

getEventTypes

EventType[] getEventTypes()
Returns an array of event types for each event stream in the order declared.

Returns:
event types