Examples of AdHocSelectFactoryImpl


Examples of org.makersoft.shards.select.impl.AdHocSelectFactoryImpl

    List<ShardId> shardIds = selectShardIdsFromShardResolutionStrategyData(srsd);
    return shardStrategy.getShardAccessStrategy().<T> apply(
        this.shardIdListToShardList(shardIds),
        shardOp,
        new FirstNonNullResultExitStrategy<T>(),
        new ExitOperationsSelectCollector(new AdHocSelectFactoryImpl(
            srsd.getStatement(), srsd.getParameter(), null, RowBounds.DEFAULT), shardStrategy.getShardReduceStrategy()));
  }
View Full Code Here

Examples of org.makersoft.shards.select.impl.AdHocSelectFactoryImpl

    List<Shard> potentialShards = determineShardsViaResolutionStrategyWithReadOperation(
        statement, parameter);

    Assert.notNull(potentialShards, "ShardResolutionStrategy returnd value cann't be null");

    return new ShardSelectImpl(potentialShards, new AdHocSelectFactoryImpl(statement,
        parameter, null, null), shardStrategy.getShardAccessStrategy(),
        shardStrategy.getShardReduceStrategy()).<T> getSingleResult();

  }
View Full Code Here

Examples of org.makersoft.shards.select.impl.AdHocSelectFactoryImpl

    List<Shard> potentialShards = determineShardsViaResolutionStrategyWithReadOperation(
        statement, parameter);
   
    Assert.notNull(potentialShards, "ShardResolutionStrategy returnd value cann't be null");

    return new ShardSelectImpl(potentialShards, new AdHocSelectFactoryImpl(statement,
        parameter, null, rowBounds), shardStrategy.getShardAccessStrategy(),
        shardStrategy.getShardReduceStrategy()).<E> getResultList();
  }
View Full Code Here

Examples of org.makersoft.shards.select.impl.AdHocSelectFactoryImpl

  }

  @Override
  public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey,
      RowBounds rowBounds) {
    return new ShardSelectImpl(shards, new AdHocSelectFactoryImpl(statement, parameter, mapKey,
        rowBounds), shardStrategy.getShardAccessStrategy(),
        shardStrategy.getShardReduceStrategy()).getResultMap();
  }
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.