partitioner.go 206 字节
Newer Older
1 2 3 4 5 6 7 8 9 10
package pserver

type partitioner struct {
	shardNum int
}

// partitioner partitions the parameters into shards.
func newPartitioner(shardNum int) *partitioner {
	return &partitioner{shardNum: shardNum}
}