Package org.tarantool.core.cmd

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


  /** {@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

  /** {@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.