type batchCursor …
func (b *batchCursor) nextEvent(batches []batch, freq frequency) (ok bool, err error) { … }
func (b *batchCursor) compare(a *batchCursor) int { … }
func readTimedBaseEvent(b []byte, e *baseEvent) (int, timestamp, error) { … }
func heapInsert(heap []*batchCursor, bc *batchCursor) []*batchCursor { … }
func heapUpdate(heap []*batchCursor, i int) { … }
func heapRemove(heap []*batchCursor, i int) []*batchCursor { … }
func heapSiftUp(heap []*batchCursor, i int) int { … }
func heapSiftDown(heap []*batchCursor, i int) int { … }
func min3(b []*batchCursor, i0, i1, i2 int) int { … }