Examples of ShardStrategyFactory


Examples of org.hibernate.shards.strategy.ShardStrategyFactory

  private EntityHiveConfig buildHiveConfiguration(Collection<Class<?>> classes) {
    return new ConfigurationReader(classes).getHiveConfiguration();
  }

  private ShardStrategyFactory buildShardStrategyFactory() {
    return new ShardStrategyFactory() {
      public ShardStrategy newShardStrategy(List<ShardId> shardIds) {
        return new ShardStrategyImpl(
          new HiveShardSelector(config, hive),
          new HiveShardResolver(config, hive),
          accessStrategy);
View Full Code Here

Examples of org.hibernate.shards.strategy.ShardStrategyFactory

   
    return new HiveSessionFactoryImpl(shardedFactory, hive, hiveConfig);
  }

  private ShardStrategyFactory buildShardStrategyFactory() {
    return new ShardStrategyFactory() {
      public ShardStrategy newShardStrategy(List<ShardId> shardIds) {
        return new ShardStrategyImpl(
            new HiveShardSelector(hiveConfig,hive),
            new HiveShardResolver(hiveConfig,hive),
            accessStrategy);
View Full Code Here

Examples of org.makersoft.shards.strategy.ShardStrategyFactory

        new UserShardStrategyFactory());

    Assert.assertNotNull(factory);

    factory = new ShardedSqlSessionFactoryBuilder().build(shardConfigs,
        new ShardStrategyFactory() {

          @Override
          public ShardStrategy newShardStrategy(List<ShardId> shardIds) {
            ShardSelectionStrategy pss = new ShardSelectionStrategy() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.