Per-series mutation surface inside the lease. Append, replace, clear, and trim operations are buffered to the back-stage and become visible to the renderer on lease disposal.
More...
|
| bool | Append (long timestampNanos, TValue value) |
| | Append one sample to the back-stage. Returns true when stored, false when discarded because timestampNanos is older than the latest committed-or-staged sample. Equal-timestamp appends replace the latest staged sample (or the latest committed one if no staged samples yet).
|
| |
| bool | Append (in HeatmapIndicatorSample< TValue > sample) |
| | Append a pre-built sample by reference. Equivalent to Append(long,TValue) with the sample fields, but avoids destructuring + reconstructing the struct when the indicator already holds a HeatmapIndicatorSample<TValue> (e.g. from warm-up payload or a calculation that returned the sample shape).
|
| |
| int | AppendRange (ReadOnlySpan< HeatmapIndicatorSample< TValue > > samples) |
| | Append a span of samples; same ordering rules as Append(long,TValue). Returns the number of samples accepted.
|
| |
| void | Clear () |
| | Drop every sample in this series. After commit, IHeatmapSeriesStateNode.CommittedCount reads as zero. Combined with subsequent appends in the same lease this is the canonical "rebuild" pattern for indicator-initiated recalculation (see design doc §5.2).
|
| |
| int | TrimBefore (long timestampNanos) |
| | Evict every committed sample whose timestamp < timestampNanos . Returns the number of samples evicted. Useful at session boundaries to bound memory.
|
| |
|
| HeatmapIndicatorVisualStyle? | Style [get, set] |
| | Per-series style override; null falls back to the descriptor default.
|
| |
Per-series mutation surface inside the lease. Append, replace, clear, and trim operations are buffered to the back-stage and become visible to the renderer on lease disposal.
- Template Parameters
-
| TValue | Indicator-internal sample type. |
◆ Append() [1/2]
Append a pre-built sample by reference. Equivalent to Append(long,TValue) with the sample fields, but avoids destructuring + reconstructing the struct when the indicator already holds a HeatmapIndicatorSample<TValue> (e.g. from warm-up payload or a calculation that returned the sample shape).
◆ Append() [2/2]
Append one sample to the back-stage. Returns true when stored, false when discarded because timestampNanos is older than the latest committed-or-staged sample. Equal-timestamp appends replace the latest staged sample (or the latest committed one if no staged samples yet).
◆ AppendRange()
Append a span of samples; same ordering rules as Append(long,TValue). Returns the number of samples accepted.
◆ Clear()
Drop every sample in this series. After commit, IHeatmapSeriesStateNode.CommittedCount reads as zero. Combined with subsequent appends in the same lease this is the canonical "rebuild" pattern for indicator-initiated recalculation (see design doc §5.2).
◆ TrimBefore()
Evict every committed sample whose timestamp < timestampNanos . Returns the number of samples evicted. Useful at session boundaries to bound memory.
◆ Style
Per-series style override; null falls back to the descriptor default.
The documentation for this interface was generated from the following file: