net.esper.eql.spec
Class StreamSpec

java.lang.Object
  extended by net.esper.eql.spec.StreamSpec
Direct Known Subclasses:
DBStatementStreamSpec, FilterStreamSpec, PatternStreamSpec

public abstract class StreamSpec
extends Object

Abstract base specification for a stream, consists simply of an optional stream name and a list of views on to of the stream.

Implementation classes for views and patterns add additional information defining the stream of events.


Constructor Summary
StreamSpec(String optionalStreamName, List<ViewSpec> viewSpecs)
          Ctor.
 
Method Summary
 String getOptionalStreamName()
          Returns the name assigned.
 List<ViewSpec> getViewSpecs()
          Returns view definitions to use to construct views to derive data on stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamSpec

public StreamSpec(String optionalStreamName,
                  List<ViewSpec> viewSpecs)
Ctor.

Parameters:
optionalStreamName - - stream name, or null if none supplied
viewSpecs - - specifies what view to use to derive data
Method Detail

getOptionalStreamName

public String getOptionalStreamName()
Returns the name assigned.

Returns:
stream name or null if not assigned

getViewSpecs

public List<ViewSpec> getViewSpecs()
Returns view definitions to use to construct views to derive data on stream.

Returns:
view defs