com.espertech.esper.epl.spec
Class StreamSpecBase

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

public abstract class StreamSpecBase
extends java.lang.Object
implements MetaDefItem, java.io.Serializable

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(java.lang.String optionalStreamName, ViewSpec[] viewSpecs, StreamSpecOptions streamSpecOptions)
          Ctor.
 
Method Summary
 java.lang.String getOptionalStreamName()
          Returns the name assigned.
 StreamSpecOptions getOptions()
          Returns the options for the stream such as unidirectional, retain-union etc.
 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

StreamSpecBase

public StreamSpecBase(java.lang.String optionalStreamName,
                      ViewSpec[] viewSpecs,
                      StreamSpecOptions streamSpecOptions)
Ctor.

Parameters:
optionalStreamName - - stream name, or null if none supplied
viewSpecs - - specifies what view to use to derive data
streamSpecOptions - - indicates additional options such as unidirectional stream or retain-union or retain-intersection

StreamSpecBase

public StreamSpecBase()
Default ctor.

Method Detail

getOptionalStreamName

public java.lang.String getOptionalStreamName()
Returns the name assigned.

Returns:
stream name or null if not assigned

getViewSpecs

public ViewSpec[] getViewSpecs()
Returns view definitions to use to construct views to derive data on stream.

Returns:
view defs

getOptions

public StreamSpecOptions getOptions()
Returns the options for the stream such as unidirectional, retain-union etc.

Returns:
stream options

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com