|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.core.StreamTypeServiceImpl
public class StreamTypeServiceImpl
Implementation that provides stream number and property type information.
Constructor Summary | |
---|---|
StreamTypeServiceImpl(EventType[] eventTypes,
String[] streamNames)
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 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 streamMethod 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
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
resolveByStreamAndPropName
in interface StreamTypeService
streamName
- - name of streampropertyName
- - property name in event
PropertyNotFoundException
- to indicate property could not be resolved
StreamNotFoundException
- to indicate stream name could not be resolved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |