|
1 | 1 | package io.tarantool.driver.core.tuple;
|
2 | 2 |
|
3 |
| -import io.tarantool.driver.api.metadata.TarantoolSpaceMetadata; |
4 |
| -import io.tarantool.driver.api.tuple.TarantoolField; |
5 |
| -import io.tarantool.driver.api.tuple.TarantoolNullField; |
6 |
| -import io.tarantool.driver.api.tuple.TarantoolTuple; |
7 |
| -import io.tarantool.driver.exceptions.TarantoolClientException; |
8 |
| -import io.tarantool.driver.exceptions.TarantoolSpaceFieldNotFoundException; |
9 |
| -import io.tarantool.driver.mappers.MessagePackMapper; |
10 |
| -import io.tarantool.driver.mappers.MessagePackObjectMapper; |
11 |
| -import io.tarantool.driver.utils.Assert; |
12 |
| -import org.msgpack.core.MessagePack; |
13 |
| -import org.msgpack.core.MessagePackException; |
14 |
| -import org.msgpack.core.MessagePacker; |
15 |
| -import org.msgpack.core.MessageUnpacker; |
16 |
| -import org.msgpack.value.ArrayValue; |
17 |
| -import org.msgpack.value.Value; |
18 |
| - |
19 | 3 | import java.io.IOException;
|
20 | 4 | import java.math.BigDecimal;
|
21 | 5 | import java.time.Instant;
|
|
31 | 15 | import java.util.UUID;
|
32 | 16 | import java.util.function.Consumer;
|
33 | 17 |
|
| 18 | +import org.msgpack.core.MessagePack; |
| 19 | +import org.msgpack.core.MessagePackException; |
| 20 | +import org.msgpack.core.MessagePacker; |
| 21 | +import org.msgpack.core.MessageUnpacker; |
| 22 | +import org.msgpack.value.ArrayValue; |
| 23 | +import org.msgpack.value.Value; |
| 24 | + |
| 25 | +import io.tarantool.driver.api.metadata.TarantoolSpaceMetadata; |
| 26 | +import io.tarantool.driver.api.tuple.TarantoolField; |
| 27 | +import io.tarantool.driver.api.tuple.TarantoolNullField; |
| 28 | +import io.tarantool.driver.api.tuple.TarantoolTuple; |
| 29 | +import io.tarantool.driver.exceptions.TarantoolClientException; |
| 30 | +import io.tarantool.driver.exceptions.TarantoolSpaceFieldNotFoundException; |
| 31 | +import io.tarantool.driver.mappers.MessagePackMapper; |
| 32 | +import io.tarantool.driver.mappers.MessagePackObjectMapper; |
| 33 | +import io.tarantool.driver.utils.Assert; |
| 34 | + |
34 | 35 | /**
|
35 | 36 | * Basic Tarantool tuple implementation
|
36 | 37 | *
|
@@ -140,7 +141,7 @@ public TarantoolTupleImpl(ArrayValue value, MessagePackMapper mapper, TarantoolS
|
140 | 141 | @Override
|
141 | 142 | public boolean hasMetadata() {
|
142 | 143 | return spaceMetadata != null && spaceMetadata.getSpaceFormatMetadata() != null &&
|
143 |
| - !spaceMetadata.getSpaceFormatMetadata().isEmpty(); |
| 144 | + !spaceMetadata.getSpaceFormatMetadata().isEmpty(); |
144 | 145 | }
|
145 | 146 |
|
146 | 147 | @Override
|
@@ -467,4 +468,13 @@ private void readObject(java.io.ObjectInputStream in) {
|
467 | 468 | }
|
468 | 469 | }
|
469 | 470 | }
|
| 471 | + |
| 472 | + @Override |
| 473 | + public String toString() { |
| 474 | + return String.format( |
| 475 | + "\nTarantoolTupleImpl{\n" + |
| 476 | + "\tspaceMetadata=%s,\n" + |
| 477 | + "\tfields=%s\n" + |
| 478 | + "}", spaceMetadata, fields); |
| 479 | + } |
470 | 480 | }
|
0 commit comments