Struct ScyllaPriorityQueueNode<TValue>
A public-facing node that pairs an integer priority with an unmanaged payload value, used as the element type exposed by ScyllaPriorityQueueDOTS<TValue>.
Inherited Members
Namespace: Scylla.Core.Structures
Assembly: ScyllaCore.dll
Syntax
[BurstCompile]
public struct ScyllaPriorityQueueNode<TValue> where TValue : unmanaged
Type Parameters
| Name | Description |
|---|---|
| TValue | The payload type. Must satisfy the |
Remarks
This struct is what callers receive from TryRemove(out ScyllaPriorityQueueNode<TValue>),
TryPeek(out ScyllaPriorityQueueNode<TValue>), and
the CopyTo overloads. Internally the queue stores a richer HeapItem that also
carries a sequence number for FIFO tie-breaking, but that detail is not exposed here.
Constructors
ScyllaPriorityQueueNode(int, TValue)
Initializes a new ScyllaPriorityQueueNode<TValue> with the specified priority and value.
Declaration
public ScyllaPriorityQueueNode(int priority, TValue value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | priority | The integer priority of this node. Lower values are dequeued first in Min-heap mode; higher values are dequeued first in Max-heap mode. |
| TValue | value | The payload value to associate with this node. |
Fields
Priority
The integer priority of this node, used by ScyllaPriorityQueueDOTS<TValue> to determine dequeue order. Smaller values have higher priority in Min-heap mode; larger values have higher priority in Max-heap mode.
Declaration
public int Priority
Field Value
| Type | Description |
|---|---|
| int |
Value
The caller-supplied payload associated with this node.
Declaration
public TValue Value
Field Value
| Type | Description |
|---|---|
| TValue |