Package org.tarantool.snapshot.SnapshotReader

Examples of org.tarantool.snapshot.SnapshotReader.Row


    ReadableByteChannel readableByteChannel = createReadableByteChannel(closed, ar);
    TupleSupport ts = new TupleSupport();
    SnapshotReader snapShotReader = new SnapshotReader(readableByteChannel);
    for (int i = 0; i < 10; i++) {
      Tuple tuple = ts.create(i, Long.parseLong("98765432" + i), "Hello world " + i + "!");
      Row row = snapShotReader.nextRow();
      Assert.assertTrue(Arrays.equals(tuple.pack(), row.data.pack()));
    }
    snapShotReader.close();
    Assert.assertTrue(closed.get());
View Full Code Here

TOP

Related Classes of org.tarantool.snapshot.SnapshotReader.Row

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.