Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RegionHeap ¶
type RegionHeap struct {
// contains filtered or unexported fields
}
RegionHeap implements heap.Interface, used for selecting top n regions.
func (*RegionHeap) Len ¶
func (h *RegionHeap) Len() int
func (*RegionHeap) Less ¶
func (h *RegionHeap) Less(i, j int) bool
func (*RegionHeap) Min ¶
func (h *RegionHeap) Min() *core.RegionInfo
Min returns the minimum region from the heap.
func (*RegionHeap) Pop ¶
func (h *RegionHeap) Pop() interface{}
Pop removes the minimum element (according to Less) from the heap and returns it.
func (*RegionHeap) Push ¶
func (h *RegionHeap) Push(x interface{})
Push pushes an element x onto the heap.
func (*RegionHeap) Swap ¶
func (h *RegionHeap) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.