public class BitmapShardDataSourceProvider extends Object implements DataSourceProvider
| Constructor and Description |
|---|
BitmapShardDataSourceProvider(Class<? extends DataSource> dataSourceClass,
Map<String,String> commonDataSourceProperties,
Map<String,String> connectionUrls) |
BitmapShardDataSourceProvider(Map<String,DataSource> connectionDataSources) |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
getDataSource(int virtualShardId) |
int |
getDataSourceId(int virtualShardId) |
List<Integer> |
getDistinctShardIds() |
public BitmapShardDataSourceProvider(Map<String,DataSource> connectionDataSources)
public BitmapShardDataSourceProvider(Class<? extends DataSource> dataSourceClass, Map<String,String> commonDataSourceProperties, Map<String,String> connectionUrls) throws InstantiationException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException
public int getDataSourceId(int virtualShardId)
getDataSourceId in interface DataSourceProviderpublic DataSource getDataSource(int virtualShardId)
getDataSource in interface DataSourceProviderpublic List<Integer> getDistinctShardIds()
getDistinctShardIds in interface DataSourceProviderCopyright © 2012–2022 Zalando SE. All rights reserved.