Class DoubleEMOperator.Context
java.lang.Object
io.deephaven.engine.table.impl.updateby.UpdateByOperator.Context
io.deephaven.engine.table.impl.updateby.internal.BaseDoubleUpdateByOperator.Context
io.deephaven.engine.table.impl.updateby.em.BasePrimitiveEMOperator.Context
io.deephaven.engine.table.impl.updateby.em.DoubleEMOperator.Context
- All Implemented Interfaces:
SafeCloseable,AutoCloseable
- Enclosing class:
- DoubleEMOperator
-
Field Summary
FieldsFields inherited from class io.deephaven.engine.table.impl.updateby.internal.BaseDoubleUpdateByOperator.Context
curVal, outputFillContext, outputValuesFields inherited from class io.deephaven.engine.table.impl.updateby.UpdateByOperator.Context
affectedPosChunk, influencerPosChunk, nullCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccumulateCumulative(@NotNull RowSequence inputKeys, @NotNull Chunk<? extends Values>[] valueChunkArr, LongChunk<? extends Values> tsChunk, int len) For cumulative operators only, this method will be called to pass the input chunk data to the operator and produce the output data values.booleanisValueValid(long atKey) voidpush(int pos, int count) Add values to the operators current data setvoidsetValueChunks(@NotNull Chunk<? extends Values>[] valueChunks) Methods inherited from class io.deephaven.engine.table.impl.updateby.em.BasePrimitiveEMOperator.Context
resetMethods inherited from class io.deephaven.engine.table.impl.updateby.internal.BaseDoubleUpdateByOperator.Context
accumulateRolling, close, writeNullToOutputChunk, writeToOutputChunk, writeToOutputColumnMethods inherited from class io.deephaven.engine.table.impl.updateby.UpdateByOperator.Context
pop, setPosChunks
-
Field Details
-
doubleValueChunk
-
-
Constructor Details
-
Context
protected Context(int chunkSize)
-
-
Method Details
-
accumulateCumulative
public void accumulateCumulative(@NotNull @NotNull RowSequence inputKeys, @NotNull @NotNull Chunk<? extends Values>[] valueChunkArr, LongChunk<? extends Values> tsChunk, int len) Description copied from class:UpdateByOperator.ContextFor cumulative operators only, this method will be called to pass the input chunk data to the operator and produce the output data values.- Overrides:
accumulateCumulativein classBaseDoubleUpdateByOperator.Context- Parameters:
inputKeys- the keys for the input data rows (also matches the output keys)valueChunkArr- the input data chunks needed by the operator for internal calculationstsChunk- the timestamp chunk for the input data (if applicable)len- the number of items in the input data chunks
-
setValueChunks
- Overrides:
setValueChunksin classBaseDoubleUpdateByOperator.Context
-
isValueValid
public boolean isValueValid(long atKey) - Overrides:
isValueValidin classUpdateByOperator.Context
-
push
public void push(int pos, int count) Description copied from class:UpdateByOperator.ContextAdd values to the operators current data set- Specified by:
pushin classUpdateByOperator.Context- Parameters:
pos- the index in the associated chunk where this value can be found. Depending on the usage, might be a values chunk (for cumulative operators) or an influencer values chunk (for windowed). It is the task of the operator to pull the data from the chunk and use it properlycount- the number of items to push from the chunk
-