public class DataSourceRandomSelector extends Object implements DataSourceSelector
Constructor and Description |
---|
DataSourceRandomSelector(int dataSourceNum) |
DataSourceRandomSelector(int[] weights) |
Modifier and Type | Method and Description |
---|---|
int |
getRandomDataSourceIndex(List<Integer> excludeIndexes)
随机选择数据源的接口,
|
public DataSourceRandomSelector(int dataSourceNum)
public DataSourceRandomSelector(int[] weights)
public int getRandomDataSourceIndex(List<Integer> excludeIndexes)
DataSourceSelector
getRandomDataSourceIndex
in interface DataSourceSelector
excludeIndexes
- 排除的数据源序号Copyright © 2006–2018 TinyGroup. All rights reserved.