Documentation
¶
Index ¶
- func ArraySource(a ...int) <-chan int
- func InMemSort(in <-chan int) <-chan int
- func Init()
- func Merge(in1, in2 <-chan int) <-chan int
- func MergeN(inputs ...<-chan int) <-chan int
- func NetworkSink(addr string, in <-chan int)
- func NetworkSource(addr string) <-chan int
- func RandomSource(count int) <-chan int
- func ReaderSource(reader io.Reader, chunkSize int) <-chan int
- func WirterSink(writer io.Writer, in <-chan int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InMemSort ¶
in 是节点的一个输入,方向是从 channel 进到我们里面来(只进不出) return的 <-chan int 是一个输出,相对于使用它的人来说,只能从它收东西(只出不进) InMemSort只能发东西
func NetworkSink ¶
func NetworkSource ¶
func RandomSource ¶
func ReaderSource ¶
chunkSize 不能一直读,要分块
func WirterSink ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.