Examples of ShardResolutionStrategy


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

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

              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

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

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

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

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
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.