Package org.yamcs.yarch
Class SelectStream
- java.lang.Object
-
- org.yamcs.yarch.Stream
-
- org.yamcs.yarch.SelectStream
-
- All Implemented Interfaces:
StreamSubscriber
public class SelectStream extends Stream implements StreamSubscriber
- See Also:
SelectExpression
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.yamcs.yarch.Stream
Stream.ExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static CompiledExpressionSTAR-
Fields inherited from class org.yamcs.yarch.Stream
log, name, outputDefinition, QUITTING, RUNNING, SETUP, state, subscribers, ydb
-
-
Constructor Summary
Constructors Constructor Description SelectStream(YarchDatabaseInstance ydb, Stream input, CompiledExpression cWhereClause, List<CompiledExpression> caggInputList, WindowProcessor wp, List<CompiledExpression> cselectList, TupleDefinition outputDef, TupleDefinition minOutputDef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoClose()voiddoStart()Start emitting tuples.voidonTuple(Stream stream, Tuple t)voidstreamClosed(Stream stream)-
Methods inherited from class org.yamcs.yarch.Stream
addSubscriber, close, emitTuple, exceptionHandler, getColumnDefinition, getDataCount, getDefinition, getName, getState, getSubscriberCount, getSubscribers, isRunning, quitting, removeSubscriber, setName, start, toString
-
-
-
-
Field Detail
-
STAR
public static final CompiledExpression STAR
-
-
Constructor Detail
-
SelectStream
public SelectStream(YarchDatabaseInstance ydb, Stream input, CompiledExpression cWhereClause, List<CompiledExpression> caggInputList, WindowProcessor wp, List<CompiledExpression> cselectList, TupleDefinition outputDef, TupleDefinition minOutputDef)
- Parameters:
ydb-input-cWhereClause- if null, then no where filteringwp- if null, then no windowProcessing (aggInputList is also null in this case)cselectList-outputDef- //output definition containing the expanded starsminOutputDef- //output definition where stars are not included
-
-
Method Detail
-
onTuple
public void onTuple(Stream stream, Tuple t)
- Specified by:
onTuplein interfaceStreamSubscriber
-
streamClosed
public void streamClosed(Stream stream)
- Specified by:
streamClosedin interfaceStreamSubscriber
-
doStart
public void doStart()
Description copied from class:StreamStart emitting tuples.
-
-