Package org.tarantool.core.cmd

Examples of org.tarantool.core.cmd.Update


  /** {@inheritDoc} */
  @Override
  public Tuple updateAndGet(int space, Tuple tuple, List<Operation> ops) {
    try {
      Response response = transport.execute(new Update(id.incrementAndGet(), tuple, ops).space(space).flags(Flags.RETURN_TUPLE));
      return response.readSingleTuple();
    } finally {
      returnConnection();
    }

View Full Code Here


  /** {@inheritDoc} */
  @Override
  public Integer update(int space, Tuple tuple, List<Operation> ops) {
    try {
      Response response = transport.execute(new Update(id.incrementAndGet(), tuple, ops).space(space));
      return response.getCount();
    } finally {
      returnConnection();
    }

View Full Code Here

TOP

Related Classes of org.tarantool.core.cmd.Update

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.