return shardLocalProperties;
}
}
private ShardIdentifierProvider createShardIdentifierProvider(WorkerBuildContext buildContext, Properties indexProperty) {
ShardIdentifierProvider shardIdentifierProvider;
String shardIdentityProviderName = indexProperty.getProperty( SHARDING_STRATEGY );
ServiceManager serviceManager = buildContext.getServiceManager();
shardIdentifierProvider = ClassLoaderHelper.instanceFromName(
ShardIdentifierProvider.class,
shardIdentityProviderName,
"ShardIdentifierProvider",
serviceManager
);
shardIdentifierProvider.initialize( new MaskedProperty( indexProperty, SHARDING_STRATEGY ), buildContext );
return shardIdentifierProvider;
}