Class BaseBigNumberEmStdOperator.Context
java.lang.Object
io.deephaven.engine.table.impl.updateby.UpdateByOperator.Context
BaseObjectUpdateByOperator<BigDecimal>.Context
io.deephaven.engine.table.impl.updateby.emstd.BaseBigNumberEmStdOperator.Context
- All Implemented Interfaces:
SafeCloseable,AutoCloseable
- Direct Known Subclasses:
BigDecimalEmStdOperator.Context,BigIntegerEmStdOperator.Context
- Enclosing class:
- BaseBigNumberEmStdOperator<T>
public abstract class BaseBigNumberEmStdOperator.Context
extends BaseObjectUpdateByOperator<BigDecimal>.Context
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BigDecimalprotected BigDecimalprotected BigDecimalprotected final ChunkSink.FillFromContextprotected final WritableObjectChunk<BigDecimal,? extends Values> protected longprotected longprotected ObjectChunk<T,? extends Values> protected BigDecimalFields inherited from class io.deephaven.engine.table.impl.updateby.internal.BaseObjectUpdateByOperator.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()booleanisValueValid(long atKey) 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) voidwriteToOutputColumn(@NotNull RowSequence inputKeys) Write the output chunk to the output columnMethods inherited from class io.deephaven.engine.table.impl.updateby.internal.BaseObjectUpdateByOperator.Context
accumulateCumulative, accumulateRolling, writeNullToOutputChunk, writeToOutputChunkMethods inherited from class io.deephaven.engine.table.impl.updateby.UpdateByOperator.Context
pop, setPosChunks
-
Field Details
-
objectValueChunk
-
emaFillContext
-
emaValues
-
alpha
-
oneMinusAlpha
-
lastDt
protected long lastDt -
lastStamp
protected long lastStamp -
curEma
-
curVariance
-
-
Constructor Details
-
Context
protected Context(int chunkSize)
-
-
Method Details
-
setValueChunks
- Overrides:
setValueChunksin classBaseObjectUpdateByOperator<BigDecimal>.Context
-
writeToOutputColumn
Description copied from class:UpdateByOperator.ContextWrite the output chunk to the output column- Overrides:
writeToOutputColumnin classBaseObjectUpdateByOperator<BigDecimal>.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
-
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 classBaseObjectUpdateByOperator<BigDecimal>.Context
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSafeCloseable- Overrides:
closein classBaseObjectUpdateByOperator<BigDecimal>.Context
-