public abstract class Stream extends Object implements Serializable
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)".
Modifier | Constructor and Description |
---|---|
|
Stream()
Ctor.
|
protected |
Stream(String streamName)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
String |
getStreamName()
Returns the stream name.
|
void |
setStreamName(String streamName)
Sets the stream name.
|
void |
toEPL(StringWriter writer,
EPStatementFormatter formatter)
Renders the clause in textual representation.
|
abstract void |
toEPLStream(StringWriter writer,
EPStatementFormatter formatter)
Renders the stream in textual representation.
|
abstract void |
toEPLStreamOptions(StringWriter writer)
Renders the stream in textual representation any stream options, if present.
|
abstract void |
toEPLStreamType(StringWriter writer)
Renders the stream type under a non-complete textual representation for tool use
|
public Stream()
protected Stream(String streamName)
streamName
- is null for unnamed streams, or a stream name for named streams.public abstract void toEPLStream(StringWriter writer, EPStatementFormatter formatter)
writer
- to output toformatter
- for newline-whitespace formattingpublic abstract void toEPLStreamOptions(StringWriter writer)
writer
- to output topublic abstract void toEPLStreamType(StringWriter writer)
writer
- to output topublic String getStreamName()
public void setStreamName(String streamName)
streamName
- is the name of stream, or null if unnamed.public void toEPL(StringWriter writer, EPStatementFormatter formatter)
writer
- to output toformatter
- for newline-whitespace formatting