Class BaseBigNumberEmStdOperator<T>
java.lang.Object
io.deephaven.engine.table.impl.updateby.UpdateByOperator
io.deephaven.engine.table.impl.updateby.internal.BaseObjectUpdateByOperator<BigDecimal>
io.deephaven.engine.table.impl.updateby.emstd.BaseBigNumberEmStdOperator<T>
- Direct Known Subclasses:
BigDecimalEmStdOperator,BigIntegerEmStdOperator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final OperationControlprotected WritableColumnSource<BigDecimal>protected final @NotNull MathContextprotected WritableColumnSource<BigDecimal>protected final BigDecimalprotected final BigDecimalprotected final doubleFor EM operators, we can allow floating-point tick/time units.protected ColumnSource<?>Fields inherited from class io.deephaven.engine.table.impl.updateby.internal.BaseObjectUpdateByOperator
colType, maybeInnerSource, outputSourceFields inherited from class io.deephaven.engine.table.impl.updateby.UpdateByOperator
affectingColumns, forwardWindowScaleUnits, inputModifiedColumnSet, isWindowed, outputModifiedColumnSet, pair, rowRedirection, timestampColumnName -
Constructor Summary
ConstructorsConstructorDescriptionBaseBigNumberEmStdOperator(@NotNull MatchPair pair, @NotNull String[] affectingColumns, @NotNull OperationControl control, @Nullable String timestampColumnName, double windowScaleUnits, @NotNull MathContext mathContext) An operator that computes an EM Std output from a big number column using an exponential decay function. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyOutputShift(@NotNull RowSet subRowSetToShift, long delta) Apply a shift to the operation.protected BigDecimalcomputeAlpha(long dt, double timeScaleUnits) protected BigDecimalcomputeOneMinusAlpha(BigDecimal alpha) protected voidhandleBadData(BaseBigNumberEmStdOperator<T>.@NotNull Context ctx, boolean isNull) voidinitializeCumulative(UpdateByOperator.Context updateContext, long firstUnmodifiedKey, long firstUnmodifiedTimestamp, @NotNull RowSet bucketRowSet) Initialize the bucket context for a cumulative operatorvoidinitializeSources(@NotNull Table source, @Nullable RowRedirection rowRedirection) Initialize this operator with a specific source table (and row redirection if needed).voidprepareForParallelPopulation(RowSet changedRows) Prepare this operator output column for parallel updated.voidIndicate that the operation should start tracking previous values for ticking updates.Methods inherited from class io.deephaven.engine.table.impl.updateby.internal.BaseObjectUpdateByOperator
clearOutputRows, getOutputColumnsMethods inherited from class io.deephaven.engine.table.impl.updateby.UpdateByOperator
copy, createInputModifiedColumnSet, createOutputModifiedColumnSet, extractDownstreamModifiedColumnSet, finishUpdate, getAffectingColumnNames, getFwdWindowUnits, getInputColumnNames, getInputModifiedColumnSet, getOutputColumnNames, getOutputModifiedColumnSet, getPrevWindowUnits, getTimestampColumnName, initializeCumulativeWithKeyValues, initializeRolling, initializeRollingWithKeyValues, makeUpdateContext, requiresRowPositions
-
Field Details
-
control
-
reverseWindowScaleUnits
protected final double reverseWindowScaleUnitsFor EM operators, we can allow floating-point tick/time units. -
mathContext
-
opAlpha
-
opOneMinusAlpha
-
valueSource
-
emaSource
-
maybeEmaInnerSource
-
-
Constructor Details
-
BaseBigNumberEmStdOperator
public BaseBigNumberEmStdOperator(@NotNull @NotNull MatchPair pair, @NotNull @NotNull String[] affectingColumns, @NotNull @NotNull OperationControl control, @Nullable @Nullable String timestampColumnName, double windowScaleUnits, @NotNull @NotNull MathContext mathContext) An operator that computes an EM Std output from a big number column using an exponential decay function.- Parameters:
pair- theMatchPairthat defines the input/output for this operationaffectingColumns- the names of the columns that affect this emacontrol- defines how to handlenullinput values.timestampColumnName- the name of the column containing timestamps for time-based calcuationswindowScaleUnits- the smoothing window for the EMA. If notimestampColumnNameis provided, this is measured in ticks, otherwise it is measured in nanoseconds
-
-
Method Details
-
initializeSources
public void initializeSources(@NotNull @NotNull Table source, @Nullable @Nullable RowRedirection rowRedirection) Description copied from class:UpdateByOperatorInitialize this operator with a specific source table (and row redirection if needed). This will be called exactly once per operator.- Overrides:
initializeSourcesin classBaseObjectUpdateByOperator<BigDecimal>
-
initializeCumulative
public void initializeCumulative(@NotNull UpdateByOperator.Context updateContext, long firstUnmodifiedKey, long firstUnmodifiedTimestamp, @NotNull @NotNull RowSet bucketRowSet) Description copied from class:UpdateByOperatorInitialize the bucket context for a cumulative operator- Overrides:
initializeCumulativein classBaseObjectUpdateByOperator<BigDecimal>
-
startTrackingPrev
public void startTrackingPrev()Description copied from class:UpdateByOperatorIndicate that the operation should start tracking previous values for ticking updates.- Overrides:
startTrackingPrevin classBaseObjectUpdateByOperator<BigDecimal>
-
applyOutputShift
Description copied from class:UpdateByOperatorApply a shift to the operation.- Overrides:
applyOutputShiftin classBaseObjectUpdateByOperator<BigDecimal>
-
prepareForParallelPopulation
Description copied from class:UpdateByOperatorPrepare this operator output column for parallel updated.- Overrides:
prepareForParallelPopulationin classBaseObjectUpdateByOperator<BigDecimal>
-
handleBadData
protected void handleBadData(@NotNull BaseBigNumberEmStdOperator<T>.@NotNull Context ctx, boolean isNull) -
computeAlpha
-
computeOneMinusAlpha
-