Package org.yamcs.yarch
Class HistogramReaderStream
- java.lang.Object
-
- org.yamcs.yarch.Stream
-
- org.yamcs.yarch.HistogramReaderStream
-
- All Implemented Interfaces:
Runnable,DbReaderStream
public class HistogramReaderStream extends Stream implements Runnable, DbReaderStream
Sends histogram data to a stream. The definition of the emitted tuples is inTupleSourceExpression.bind(org.yamcs.yarch.streamsql.ExecutionContext)
-
-
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 HistogramReaderStream(YarchDatabaseInstance ydb, TableDefinition tblDef, String histoColumnName, TupleDefinition tupleDef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddInFilter(ColumnExpression cexpr, boolean negation, Set<Object> values)could filter on the histoColumn values, not done for the momentbooleanaddRelOpFilter(ColumnExpression cexpr, RelOp relOp, Object value)voiddoClose()voiddoStart()Start emitting tuples.voidrun()voidsetMergeTime(long mergeTime)-
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
-
-
-
-
Constructor Detail
-
HistogramReaderStream
public HistogramReaderStream(YarchDatabaseInstance ydb, TableDefinition tblDef, String histoColumnName, TupleDefinition tupleDef) throws YarchException
- Throws:
YarchException
-
-
Method Detail
-
doStart
public void doStart()
Description copied from class:StreamStart emitting tuples.
-
addRelOpFilter
public boolean addRelOpFilter(ColumnExpression cexpr, RelOp relOp, Object value) throws StreamSqlException
- Specified by:
addRelOpFilterin interfaceDbReaderStream- Throws:
StreamSqlException
-
addInFilter
public boolean addInFilter(ColumnExpression cexpr, boolean negation, Set<Object> values)
could filter on the histoColumn values, not done for the moment- Specified by:
addInFilterin interfaceDbReaderStream
-
setMergeTime
public void setMergeTime(long mergeTime)
-
-