com.espertech.esper.client.soda
Class Stream

java.lang.Object
  extended by com.espertech.esper.client.soda.Stream
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MethodInvocationStream, ProjectedStream, SQLStream

public abstract class Stream
extends Object
implements Serializable

An abstract base class for a named or unnamed stream.

Named streams provide an as-name for the stream, for example "select * from MyEvents(id=10) as StreamZero". Unnamed streams provide no as-name for the stream, for example "select * from MyEvents(id=10)".

See Also:
Serialized Form

Constructor Summary
protected Stream(String streamName)
          Ctor.
 
Method Summary
 String getStreamName()
          Returns the stream name.
 void setStreamName(String streamName)
          Sets the stream name.
 void toEPL(StringWriter writer)
          Renders the clause in textual representation.
abstract  void toEPLStream(StringWriter writer)
          Renders the stream in textual representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stream

protected Stream(String streamName)
Ctor.

Parameters:
streamName - is null for unnamed streams, or a stream name for named streams.
Method Detail

toEPLStream

public abstract void toEPLStream(StringWriter writer)
Renders the stream in textual representation.

Parameters:
writer - to output to

getStreamName

public String getStreamName()
Returns the stream name.

Returns:
name of stream, or null if unnamed.

setStreamName

public void setStreamName(String streamName)
Sets the stream name.

Parameters:
streamName - is the name of stream, or null if unnamed.

toEPL

public void toEPL(StringWriter writer)
Renders the clause in textual representation.

Parameters:
writer - to output to

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