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
Modifier and TypeFieldDescriptionprotected BigDecimal
protected BigDecimal
protected BigDecimal
protected final ChunkSink.FillFromContext
protected final WritableObjectChunk<BigDecimal,
? extends Values> protected long
protected long
protected ObjectChunk<T,
? extends Values> protected BigDecimal
Fields inherited from class io.deephaven.engine.table.impl.updateby.internal.BaseObjectUpdateByOperator.Context
curVal, outputFillContext, outputValues
Fields inherited from class io.deephaven.engine.table.impl.updateby.UpdateByOperator.Context
affectedPosChunk, influencerPosChunk, nullCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
isValueValid
(long atKey) void
push
(int pos, int count) Add values to the operators current data setvoid
reset()
Reset the operator data values to a known state.void
setValueChunks
(@NotNull Chunk<? extends Values>[] valueChunks) void
writeToOutputColumn
(@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, writeToOutputChunk
Methods 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:
setValueChunks
in classBaseObjectUpdateByOperator<BigDecimal>.Context
-
writeToOutputColumn
Description copied from class:UpdateByOperator.Context
Write the output chunk to the output column- Overrides:
writeToOutputColumn
in classBaseObjectUpdateByOperator<BigDecimal>.Context
-
isValueValid
public boolean isValueValid(long atKey) - Overrides:
isValueValid
in classUpdateByOperator.Context
-
push
public void push(int pos, int count) Description copied from class:UpdateByOperator.Context
Add values to the operators current data set- Specified by:
push
in 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.Context
Reset the operator data values to a known state. This may occur during initialization or when a windowed operator has an empty window- Overrides:
reset
in classBaseObjectUpdateByOperator<BigDecimal>.Context
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSafeCloseable
- Overrides:
close
in classBaseObjectUpdateByOperator<BigDecimal>.Context
-