Documentation ¶
Index ¶
- func FilterTrueKeys(h map[string]bool) []string
- func GetListIndex(pluginList framework.PluginList) framework.PluginOrder
- func LeftChild(i int) int
- func Parent(i int) int
- func TopHighestScoreNodes(priorityNodes []api.NodeScore, m int) (resp []api.NodeScore)
- type MinHeap
- func (heap *MinHeap) GetMinVal() (api.NodeScore, error)
- func (heap *MinHeap) GetSize() int
- func (heap *MinHeap) IsEmpty() bool
- func (heap *MinHeap) Replace(priorityNode api.NodeScore) error
- func (heap *MinHeap) SiftDown() (api.NodeScore, error)
- func (heap *MinHeap) SiftUp(priorityNode api.NodeScore)
- type NodeIndexer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterTrueKeys ¶
func GetListIndex ¶
func GetListIndex(pluginList framework.PluginList) framework.PluginOrder
Types ¶
type MinHeap ¶
type MinHeap struct {
// contains filtered or unexported fields
}
MinHeap implements a min-heap with the smallest of all data stored at the top of the heap. We need to control the lock of this data structure at the upper level.
func NewMinHeap ¶
func NewMinHeap() *MinHeap
NewMinHeap return a pointer to MinHeap. We need to control the lock of this data structure at the upper level.
type NodeIndexer ¶
type NodeIndexer struct { Name string NextStartInPartitionNodeIndex int NextStartOutOfPartitionNodeIndex int }
func NewIndexer ¶
func NewIndexer(name string) *NodeIndexer
Click to show internal directories.
Click to hide internal directories.