Package org.tarantool.snapshot

Examples of org.tarantool.snapshot.SnapshotWriter.writeRow()


          byte[] enabled = { Byte.valueOf(values[3]) };
          Long registered = Long.parseLong(outdf.format(indf.parse(values[4])));
          Tuple tuple = new Tuple(5).setInt(0, id).setString(1, username, "UTF-8").setString(2, email, "UTF-8").setBytes(3, enabled)
              .setLong(4, registered);

          writer.writeRow(0, tuple);
        } else {
          System.err.println("Line should be splited in 5 parts, but has " + values.length + " for " + line);
        }
      } catch (Exception e) {
        System.err.println("Can't parse line " + line);
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.