com.espertech.esper.epl.spec
Class StreamSpecBase

java.lang.Object
  extended by com.espertech.esper.epl.spec.StreamSpecBase
All Implemented Interfaces:
MetaDefItem, Serializable
Direct Known Subclasses:
DBStatementStreamSpec, FilterStreamSpecCompiled, FilterStreamSpecRaw, MethodStreamSpec, NamedWindowConsumerStreamSpec, PatternStreamSpecCompiled, PatternStreamSpecRaw

public abstract class StreamSpecBase
extends Object
implements MetaDefItem

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.

See Also:
Serialized Form

Constructor Summary
StreamSpecBase()
          Default ctor.
StreamSpecBase(String optionalStreamName, List<ViewSpec> viewSpecs, boolean isUnidirectional)
          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.
 boolean isUnidirectional()
          Returns true to indicate a unidirectional stream in a join, applicable for joins.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamSpecBase

public StreamSpecBase(String optionalStreamName,
                      List<ViewSpec> viewSpecs,
                      boolean isUnidirectional)
Ctor.

Parameters:
optionalStreamName - - stream name, or null if none supplied
viewSpecs - - specifies what view to use to derive data
isUnidirectional - - true to indicate a unidirectional stream in a join, applicable for joins

StreamSpecBase

public StreamSpecBase()
Default ctor.

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

isUnidirectional

public boolean isUnidirectional()
Returns true to indicate a unidirectional stream in a join, applicable for joins.

Returns:
indicator whether the stream is unidirectional in a join

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com