Package org.hibernate.shards.strategy

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


   
    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

TOP

Related Classes of org.hibernate.shards.strategy.ShardStrategyFactory

Copyright © 2018 www.massapicom. 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.