Package org.yamcs.yarch
Class MergeStream
- java.lang.Object
-
- org.yamcs.yarch.Stream
-
- org.yamcs.yarch.MergeStream
-
- All Implemented Interfaces:
Runnable,StreamSubscriber
public class MergeStream extends Stream implements StreamSubscriber, Runnable
-
-
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
Constructors Constructor Description MergeStream(YarchDatabaseInstance ydb, Stream[] streams, String mergeColumn, boolean ascending)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoClose()voiddoStart()Start emitting tuples.voidonTuple(Stream s, Tuple tuple)voidrun()voidstreamClosed(Stream s)-
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 Detail
-
MergeStream
public MergeStream(YarchDatabaseInstance ydb, Stream[] streams, String mergeColumn, boolean ascending) throws StreamSqlException
- Throws:
StreamSqlException
-
-
Method Detail
-
onTuple
public void onTuple(Stream s, Tuple tuple)
- Specified by:
onTuplein interfaceStreamSubscriber
-
streamClosed
public void streamClosed(Stream s)
- Specified by:
streamClosedin interfaceStreamSubscriber
-
doStart
public void doStart()
Description copied from class:StreamStart emitting tuples.
-
-