MCPcopy Create free account
hub / github.com/distributedio/titan / Less

Method Less

command/sets.go:207–207  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

205
206func (h MinHeap) Len() int { return len(h) }
207func (h MinHeap) Less(i, j int) bool { return bytes.Compare(h[i].Value(), h[j].Value()) < 0 }
208func (h MinHeap) Swap(i, j int) { h[i], h[j] = h[j], h[i] }
209func (h *MinHeap) Push(x interface{}) {
210 item := x.(*db.SetIter)

Callers

nothing calls this directly

Calls 1

ValueMethod · 0.80

Tested by

no test coverage detected