Examples of readTuples()


Examples of com.mysql.ndbjtie.ndbapi.NdbIndexScanOperation.readTuples()

        handleError(ndbOperation, ndbTransaction);
        int lockMode = indexScanLockMode;
        int scanFlags = 0;
        int parallel = 0;
        int batch = 0;
        int returnCode = ndbOperation.readTuples(lockMode, scanFlags, parallel, batch);
        handleError(returnCode, ndbTransaction);
        if (logger.isTraceEnabled()) logger.trace("Table: " + storeTable.getName() + " index: " + storeIndex.getName());
        return new IndexScanOperationImpl(storeTable, ndbOperation, this);
    }
View Full Code Here

Examples of com.mysql.ndbjtie.ndbapi.NdbIndexScanOperation.readTuples()

        handleError(ndbOperation, ndbTransaction);
        int lockMode = indexScanLockMode;
        int scanFlags = ScanFlag.SF_MultiRange;
        int parallel = 0;
        int batch = 0;
        int returnCode = ndbOperation.readTuples(lockMode, scanFlags, parallel, batch);
        handleError(returnCode, ndbTransaction);
        if (logger.isTraceEnabled()) logger.trace("Table: " + storeTable.getName() + " index: " + storeIndex.getName());
        return new IndexScanOperationImpl(storeTable, ndbOperation, this);
    }
View Full Code Here

Examples of com.mysql.ndbjtie.ndbapi.NdbIndexScanOperation.readTuples()

        handleError(ndbOperation, ndbTransaction);
        int lockMode = com.mysql.ndbjtie.ndbapi.NdbOperationConst.LockMode.LM_Exclusive;
        int scanFlags = ScanFlag.SF_KeyInfo;
        int parallel = 0;
        int batch = 0;
        int returnCode = ndbOperation.readTuples(lockMode, scanFlags, parallel, batch);
        handleError(returnCode, ndbTransaction);
        if (logger.isTraceEnabled()) logger.trace("Table: " + storeTable.getName() + " index: " + storeIndex.getName());
        return new IndexScanOperationImpl(storeTable, ndbOperation, this);
    }
View Full Code Here

Examples of com.mysql.ndbjtie.ndbapi.NdbScanOperation.readTuples()

        // define a read scan with exclusive locks
        final int lock_mode = NdbOperation.LockMode.LM_Exclusive;
        final int scan_flags = 0;
        final int parallel = 0;
        final int batch_ = 0;
        if (op.readTuples(lock_mode, scan_flags, parallel, batch_) != 0)
            throw new RuntimeException(toStr(tx.getNdbError()));

        // start the scan; don't commit yet
        executeOperations();
View Full Code Here

Examples of com.mysql.ndbjtie.ndbapi.NdbScanOperation.readTuples()

        handleError(ndbScanOperation, ndbTransaction);
        int lockMode = tableScanLockMode;
        int scanFlags = 0;
        int parallel = 0;
        int batch = 0;
        int returnCode = ndbScanOperation.readTuples(lockMode, scanFlags, parallel, batch);
        handleError(returnCode, ndbTransaction);
        if (logger.isTraceEnabled()) logger.trace("Table: " + storeTable.getName());
        return new ScanOperationImpl(storeTable, ndbScanOperation, this);
    }
View Full Code Here

Examples of com.mysql.ndbjtie.ndbapi.NdbScanOperation.readTuples()

        handleError(ndbScanOperation, ndbTransaction);
        int lockMode = com.mysql.ndbjtie.ndbapi.NdbOperationConst.LockMode.LM_Exclusive;
        int scanFlags = ScanFlag.SF_KeyInfo;
        int parallel = 0;
        int batch = 0;
        int returnCode = ndbScanOperation.readTuples(lockMode, scanFlags, parallel, batch);
        handleError(returnCode, ndbTransaction);
        if (logger.isTraceEnabled()) logger.trace("Table: " + storeTable.getName());
        return new ScanOperationImpl(storeTable, ndbScanOperation, this);
    }
View Full Code Here

Examples of org.tarantool.core.cmd.Response.readTuples()

  /** {@inheritDoc} */
  @Override
  public List<Tuple> find(int space, int index, int offset, int limit, Tuple... keys) {
    try {
      Response response = transport.execute(new Select(id.incrementAndGet(), keys).space(space).index(index).offset(offset).limit(limit));
      return response.readTuples();
    } finally {
      returnConnection();
    }

  }
View Full Code Here

Examples of org.tarantool.core.cmd.Response.readTuples()

  /** {@inheritDoc} */
  @Override
  public Tuple findOne(int space, int index, int offset, Tuple... keys) {
    try {
      Response response = transport.execute(new Select(id.incrementAndGet(), keys).space(space).index(index).offset(offset).limit(1));
      List<Tuple> tuples = response.readTuples();
      return tuples == null || tuples.isEmpty() ? null : tuples.get(0);
    } finally {
      returnConnection();
    }

View Full Code Here

Examples of org.tarantool.core.cmd.Response.readTuples()

  /** {@inheritDoc} */
  @Override
  public List<Tuple> call(int flags, String procName, Tuple args) {
    try {
      Response response = transport.execute(new Call(id.incrementAndGet(), procName, args).flags(flags));
      return response.readTuples();
    } finally {
      returnConnection();
    }
  }

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.