Package org.yamcs.yarch
Class MergeStream
java.lang.Object
org.yamcs.yarch.Stream
org.yamcs.yarch.MergeStream
- All Implemented Interfaces:
Runnable
,StreamSubscriber
-
Nested Class Summary
Nested classes/interfaces inherited from class org.yamcs.yarch.Stream
Stream.ExceptionHandler
-
Field Summary
Fields inherited from class org.yamcs.yarch.Stream
log, name, outputDefinition, QUITTING, RUNNING, SETUP, state, subscribers, ydb
-
Constructor Summary
ConstructorDescriptionMergeStream
(YarchDatabaseInstance ydb, Stream[] streams, String mergeColumn, boolean ascending) -
Method Summary
Methods inherited from class org.yamcs.yarch.Stream
addSubscriber, close, emitTuple, exceptionHandler, getColumnDefinition, getDataCount, getDefinition, getName, getState, getSubscriberCount, getSubscribers, isClosed, isRunning, quitting, removeSubscriber, setName, start, toString
-
Constructor Details
-
MergeStream
public MergeStream(YarchDatabaseInstance ydb, Stream[] streams, String mergeColumn, boolean ascending) throws StreamSqlException - Throws:
StreamSqlException
-
-
Method Details
-
onTuple
- Specified by:
onTuple
in interfaceStreamSubscriber
-
streamClosed
- Specified by:
streamClosed
in interfaceStreamSubscriber
-
doStart
public void doStart()Description copied from class:Stream
Start emitting tuples. -
run
public void run() -
doClose
protected void doClose()
-