java.lang.Object
com.espertech.esper.common.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:
  • Constructor Details

    • Stream

      public Stream()
      Ctor.
    • Stream

      protected Stream(String streamName)
      Ctor.
      Parameters:
      streamName - is null for unnamed streams, or a stream name for named streams.
  • Method Details

    • toEPLStream

      public abstract void toEPLStream(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(StringWriter writer)
      Renders the stream in textual representation any stream options, if present.
      Parameters:
      writer - to output to
    • toEPLStreamType

      public abstract void toEPLStreamType(StringWriter writer)
      Renders the stream type under a non-complete textual representation for tool use
      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, EPStatementFormatter formatter)
      Renders the clause in textual representation.
      Parameters:
      writer - to output to
      formatter - for newline-whitespace formatting