Class DoubleRollingMinMaxOperator.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.rollingminmax.DoubleRollingMinMaxOperator.Context
- All Implemented Interfaces:
SafeCloseable,AutoCloseable
- Enclosing class:
- DoubleRollingMinMaxOperator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AggregatingDoubleRingBufferprotected DoubleChunk<? extends Values>protected booleanFields 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 TypeMethodDescriptionvoidclose()voidpop(int count) Remove values from the operators current data set.voidpush(int pos, int count) Add values to the operators current data setvoidreset()Reset the operator data values to a known state.voidsetValueChunks(@NotNull Chunk<? extends Values>[] valueChunks) voidwriteToOutputChunk(int outIdx) Write the current value for this row to the output chunkMethods inherited from class io.deephaven.engine.table.impl.updateby.internal.BaseDoubleUpdateByOperator.Context
accumulateCumulative, accumulateRolling, writeNullToOutputChunk, writeToOutputColumnMethods inherited from class io.deephaven.engine.table.impl.updateby.UpdateByOperator.Context
isValueValid, setPosChunks
-
Field Details
-
doubleInfluencerValuesChunk
-
aggMinMax
-
evaluationNeeded
protected boolean evaluationNeeded
-
-
Constructor Details
-
Context
protected Context(int affectedChunkSize, int influencerChunkSize)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSafeCloseable- Overrides:
closein classBaseDoubleUpdateByOperator.Context
-
setValueChunks
- Overrides:
setValueChunksin classBaseDoubleUpdateByOperator.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
-
pop
public void pop(int count) Description copied from class:UpdateByOperator.ContextRemove values from the operators current data set. This is only valid for windowed operators as cumulative operators only append values- Overrides:
popin classUpdateByOperator.Context- Parameters:
count- the number of items to pop from the data set
-
writeToOutputChunk
public void writeToOutputChunk(int outIdx) Description copied from class:UpdateByOperator.ContextWrite the current value for this row to the output chunk- Overrides:
writeToOutputChunkin classBaseDoubleUpdateByOperator.Context
-
reset
public void reset()Description copied from class:UpdateByOperator.ContextReset the operator data values to a known state. This may occur during initialization or when a windowed operator has an empty window- Overrides:
resetin classBaseDoubleUpdateByOperator.Context
-