Class Stream
java.lang.Object
com.espertech.esper.common.client.soda.Stream
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MethodInvocationStream
,ProjectedStream
,SQLStream
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:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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
-
Constructor Details
-
Stream
public Stream()Ctor. -
Stream
Ctor.- Parameters:
streamName
- is null for unnamed streams, or a stream name for named streams.
-
-
Method Details
-
toEPLStream
Renders the stream in textual representation.- Parameters:
writer
- to output toformatter
- for newline-whitespace formatting
-
toEPLStreamOptions
Renders the stream in textual representation any stream options, if present.- Parameters:
writer
- to output to
-
toEPLStreamType
Renders the stream type under a non-complete textual representation for tool use- Parameters:
writer
- to output to
-
getStreamName
Returns the stream name.- Returns:
- name of stream, or null if unnamed.
-
setStreamName
Sets the stream name.- Parameters:
streamName
- is the name of stream, or null if unnamed.
-
toEPL
Renders the clause in textual representation.- Parameters:
writer
- to output toformatter
- for newline-whitespace formatting
-