com.espertech.esper.client.soda
Class Stream

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

public abstract class Stream
extends java.lang.Object
implements java.io.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
  Stream()
          Ctor.
protected Stream(java.lang.String streamName)
          Ctor.
 
Method Summary
 java.lang.String getStreamName()
          Returns the stream name.
 void setStreamName(java.lang.String streamName)
          Sets the stream name.
 void toEPL(java.io.StringWriter writer, EPStatementFormatter formatter)
          Renders the clause in textual representation.
abstract  void toEPLStream(java.io.StringWriter writer, EPStatementFormatter formatter)
          Renders the stream in textual representation.
abstract  void toEPLStreamOptions(java.io.StringWriter writer)
          Renders the stream in textual representation any stream options, if present.
abstract  void toEPLStreamType(java.io.StringWriter writer)
          Renders the stream type under a non-complete textual representation for tool use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stream

public Stream()
Ctor.


Stream

protected Stream(java.lang.String streamName)
Ctor.

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

toEPLStream

public abstract void toEPLStream(java.io.StringWriter writer,
                                 EPStatementFormatter formatter)
Renders the stream in textual representation.

Parameters:
writer - to output to
formatter - for newline-whitespace formatting

toEPLStreamOptions

public abstract void toEPLStreamOptions(java.io.StringWriter writer)
Renders the stream in textual representation any stream options, if present.

Parameters:
writer - to output to

toEPLStreamType

public abstract void toEPLStreamType(java.io.StringWriter writer)
Renders the stream type under a non-complete textual representation for tool use

Parameters:
writer - to output to

getStreamName

public java.lang.String getStreamName()
Returns the stream name.

Returns:
name of stream, or null if unnamed.

setStreamName

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

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

toEPL

public void toEPL(java.io.StringWriter writer,
                  EPStatementFormatter formatter)
Renders the clause in textual representation.

Parameters:
writer - to output to
formatter - for newline-whitespace formatting

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