Package org.makersoft.shards.strategy.resolution

Examples of org.makersoft.shards.strategy.resolution.ShardResolutionStrategy


public class UserShardStrategyFactory implements ShardStrategyFactory {
 
  @Override
  public ShardStrategy newShardStrategy(List<ShardId> shardIds) {
    ShardSelectionStrategy pss = this.getShardSelectionStrategy(shardIds);
    ShardResolutionStrategy prs = this.getShardResolutionStrategy(shardIds);
    ShardAccessStrategy pas = this.getShardAccessStrategy();
    ShardReduceStrategy srs = this.getShardReduceStrategy();
    return new ShardStrategyImpl(pss, prs, pas, srs);
  }
View Full Code Here


              public ShardId selectShardIdForNewObject(String statement, Object obj) {
                return null;
              }
            };

            ShardResolutionStrategy prs = new AllShardsShardResolutionStrategy(shardIds);
            ShardAccessStrategy pas = new SequentialShardAccessStrategy();

            ShardReduceStrategy srs = new ShardReduceStrategy() {

              @Override
View Full Code Here

public class HorizontalShardStrategyFactory implements ShardStrategyFactory {

  @Override
  public ShardStrategy newShardStrategy(List<ShardId> shardIds) {
    ShardSelectionStrategy pss = this.getShardSelectionStrategy(shardIds);
    ShardResolutionStrategy prs = this.getShardResolutionStrategy(shardIds);
    ShardAccessStrategy pas = this.getShardAccessStrategy();
    ShardReduceStrategy srs = this.getShardReduceStrategy();
    return new ShardStrategyImpl(pss, prs, pas, srs);
  }
View Full Code Here

public class VerticalShardStrategyFactory implements ShardStrategyFactory {
 
  @Override
  public ShardStrategy newShardStrategy(List<ShardId> shardIds) {
    ShardSelectionStrategy pss = this.getShardSelectionStrategy(shardIds);
    ShardResolutionStrategy prs = this.getShardResolutionStrategy(shardIds);
    ShardAccessStrategy pas = this.getShardAccessStrategy();
    ShardReduceStrategy srs = this.getShardReduceStrategy();
    return new ShardStrategyImpl(pss, prs, pas, srs);
  }
View Full Code Here

TOP

Related Classes of org.makersoft.shards.strategy.resolution.ShardResolutionStrategy

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.