Examples of BatchExecutor


Examples of com.aerospike.client.command.BatchExecutor

   */
  public final Record[] get(Policy policy, Key[] keys, String... binNames)
    throws AerospikeException {
    Record[] records = new Record[keys.length];
    HashSet<String> names = binNamesToHashSet(binNames);
    new BatchExecutor(cluster, policy, keys, null, records, names, Command.INFO1_READ);
    return records;
  }
View Full Code Here

Examples of com.aerospike.client.command.BatchExecutor

   * @return            array of records
   * @throws AerospikeException  if read fails
   */
  public final Record[] getHeader(Policy policy, Key[] keys) throws AerospikeException {
    Record[] records = new Record[keys.length];
    new BatchExecutor(cluster, policy, keys, null, records, null, Command.INFO1_READ | Command.INFO1_NOBINDATA);
    return records;
  }
View Full Code Here

Examples of com.aerospike.client.command.BatchExecutor

  public final boolean[] exists(Policy policy, Key[] keys) throws AerospikeException {
    if (policy == null) {
      policy = readPolicyDefault;
    }
    boolean[] existsArray = new boolean[keys.length];
    new BatchExecutor(cluster, policy, keys, existsArray, null, null, Command.INFO1_READ | Command.INFO1_NOBINDATA);
    return existsArray;
  }
View Full Code Here

Examples of com.aerospike.client.command.BatchExecutor

  public final Record[] get(Policy policy, Key[] keys) throws AerospikeException {
    if (policy == null) {
      policy = readPolicyDefault;
    }
    Record[] records = new Record[keys.length];
    new BatchExecutor(cluster, policy, keys, null, records, null, Command.INFO1_READ | Command.INFO1_GET_ALL);
    return records;
  }
View Full Code Here

Examples of com.aerospike.client.command.BatchExecutor

    if (policy == null) {
      policy = readPolicyDefault;
    }
    Record[] records = new Record[keys.length];
    HashSet<String> names = binNamesToHashSet(binNames);
    new BatchExecutor(cluster, policy, keys, null, records, names, Command.INFO1_READ);
    return records;
  }
View Full Code Here

Examples of com.aerospike.client.command.BatchExecutor

  public final Record[] getHeader(Policy policy, Key[] keys) throws AerospikeException {
    if (policy == null) {
      policy = readPolicyDefault;
    }
    Record[] records = new Record[keys.length];
    new BatchExecutor(cluster, policy, keys, null, records, null, Command.INFO1_READ | Command.INFO1_NOBINDATA);
    return records;
  }
View Full Code Here

Examples of com.alibaba.tamper.core.introspect.BatchExecutor

            logger.debug("====================== start mapping \n\t srcClass["
                         + param.getSrcRef().getClass().toString() + "] \n\t targetClass["
                         + param.getTargetRef().getClass().toString() + "]");
        }
        BatchObjectHolder holder = null;
        BatchExecutor getBatchExecutor = null;
        BatchExecutor setBatchExecutor = null;
        if (config.isBatch()) { // 执行一次batch get操作,注意batch的获取操作需要放置在doFieldMapping/doBeanMapping之前
            getBatchExecutor = getGetBatchExecutor(param, config);
            setBatchExecutor = getSetBatchExecutor(param, config);
        }
        if (config.isBatch() && getBatchExecutor != null) { // 执行一次batch get操作
            Object[] batchValues = getBatchExecutor.gets(param.getSrcRef());
            holder = new BatchObjectHolder(batchValues);
        }
        List<BeanMappingField> beanFields = config.getBeanFields();
        for (int i = 0, size = beanFields.size(); i < size; i++) {
            BeanMappingField beanField = beanFields.get(i);
            if (beanField.isMapping()) {
                doBeanMapping(param, beanField, holder);
            } else {
                doFieldMapping(param, beanField, holder);
            }
        }
        if (config.isBatch() && setBatchExecutor != null && holder != null) { // 执行一次batch set操作
            setBatchExecutor.sets(param.getTargetRef(), holder.getBatchValues());
        }

        if (isDebug && logger.isDebugEnabled()) {
            logger.debug("====================== end mapping");
        }
View Full Code Here

Examples of com.alibaba.tamper.core.introspect.BatchExecutor

    /**
     * 获取set操作的BatchExecutor
     */
    private static BatchExecutor getSetBatchExecutor(BeanMappingParam param, BeanMappingObject config) {
        BatchExecutor executor = config.getSetBatchExecutor();
        if (executor != null) { // 如果已经生成,则直接返回
            return executor;
        }

        if (canBatch(config.getBehavior()) == false) {
View Full Code Here

Examples of com.alibaba.tamper.core.introspect.BatchExecutor

    /**
     * 获取get操作的BatchExecutor
     */
    private static BatchExecutor getGetBatchExecutor(BeanMappingParam param, BeanMappingObject config) {
        BatchExecutor executor = config.getGetBatchExecutor();
        if (executor != null) { // 如果已经生成,则直接返回
            return executor;
        }

        if (canBatch(config.getBehavior()) == false) {
View Full Code Here

Examples of fr.soleil.lib.project.file.BatchExecutor

     * Creates new form UserMotorBean
     *
     **/
    public UserMotorBean(final boolean isSimpleMotorBeanGUI) {
        super();
        batchExecutor = new BatchExecutor();
        border = getBorder();
        commandLock = new Object();
        targetValue = 0;
        executedBatchFile = null;
        centerPanel = null;
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.