single

package
v0.0.0-...-ddd91b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSplitbyHash

func DataSplitbyHash(kvlist kv.KVList, routinePerCPU int) []kv.KVList

DataSplitbyHash split data by hash to multi go routine

func DataSplitbySize

func DataSplitbySize(kvlist kv.KVList, routinePerCPU int) []kv.KVList

DataSplitbySize split data by data size to multi go routine

func GetBaseLineTopN

func GetBaseLineTopN(kvlist kv.KVList, topn int) kv.KVList

GetBaseLineTopN get real topn key value

func GetMultiCoreTopN

func GetMultiCoreTopN(kvlist kv.KVList, topn int, getTopN TopNFunc, split SplitFunc) kv.KVList

GetMultiCoreTopN get topn goroutine version

func GetMultiCoreTopNbyRange

func GetMultiCoreTopNbyRange(kvlist kv.KVList, topn int, minkey, maxkey int64, getTopN TopNFunc, split SplitFunc) kv.KVList

GetMultiCoreTopNbyRange get topn goroutine version

func GetSingleTopN

func GetSingleTopN(kvlist kv.KVList, topn int) kv.KVList

GetSingleTopN get topn with

func GetSingleTopNbyRange

func GetSingleTopNbyRange(kvlist kv.KVList, topn int, minkey, maxkey int64) kv.KVList

GetSingleTopNbyRange get topn by range

Types

type SplitFunc

type SplitFunc func(kvlist kv.KVList, routinePerCPU int) []kv.KVList

SplitFunc interface

type TopNFunc

type TopNFunc func(kvlist kv.KVList, topn int) kv.KVList

TopNFunc interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL