new API
Merge branch 'master' of https://github.com/rongzheyi/DistributedSampling