diff --git a/src/main/java/io/tarantool/driver/core/metadata/ArrayValueToSpaceFormatConverter.java b/src/main/java/io/tarantool/driver/core/metadata/ArrayValueToSpaceFormatConverter.java index 22c65db8..4baaa632 100644 --- a/src/main/java/io/tarantool/driver/core/metadata/ArrayValueToSpaceFormatConverter.java +++ b/src/main/java/io/tarantool/driver/core/metadata/ArrayValueToSpaceFormatConverter.java @@ -43,8 +43,8 @@ public Map fromValue(ArrayValue format) { spaceFormatMetadata.put( fieldMap.get(FORMAT_FIELD_NAME).toString(), new TarantoolFieldMetadataImpl( - fieldMap.get(FORMAT_FIELD_NAME).asStringValue().asString(), - fieldMap.get(FORMAT_FIELD_TYPE).asStringValue().asString(), + fieldMap.get(FORMAT_FIELD_NAME).asStringValue().toString(), + fieldMap.get(FORMAT_FIELD_TYPE).asStringValue().toString(), fieldPosition, isNullable.isPresent() && isNullable.get().asBooleanValue().getBoolean() ) diff --git a/src/main/java/io/tarantool/driver/core/metadata/DDLTarantoolSpaceMetadataConverter.java b/src/main/java/io/tarantool/driver/core/metadata/DDLTarantoolSpaceMetadataConverter.java index 55282c1d..a8e74404 100644 --- a/src/main/java/io/tarantool/driver/core/metadata/DDLTarantoolSpaceMetadataConverter.java +++ b/src/main/java/io/tarantool/driver/core/metadata/DDLTarantoolSpaceMetadataConverter.java @@ -94,7 +94,7 @@ public TarantoolMetadataContainer fromValue(Value value) { TarantoolSpaceMetadataImpl spaceMetadata = new TarantoolSpaceMetadataImpl(); spaceMetadata.setOwnerId(ID_UNKNOWN); - spaceMetadata.setSpaceName(nameValue.asStringValue().asString()); + spaceMetadata.setSpaceName(nameValue.asStringValue().toString()); Value formatValue = space.get(SPACE_FORMAT_KEY); if (formatValue == null) { @@ -140,14 +140,14 @@ private Map parseIndexes( throw new TarantoolClientException( "Unsupported index metadata format: key '" + INDEX_NAME_KEY + "' must have string value"); } - String indexName = indexNameValue.asStringValue().asString(); + String indexName = indexNameValue.asStringValue().toString(); Value indexTypeValue = indexMap.get(INDEX_TYPE_KEY); if (indexTypeValue == null || !indexTypeValue.isStringValue()) { throw new TarantoolClientException( "Unsupported index metadata format: key '" + INDEX_TYPE_KEY + "' must have string value"); } - String indexType = indexTypeValue.asStringValue().asString(); + String indexType = indexTypeValue.asStringValue().toString(); Value indexUniqueValue = indexMap.get(INDEX_UNIQUE_KEY); if (indexUniqueValue == null || !indexUniqueValue.isBooleanValue()) { @@ -196,7 +196,7 @@ private Map parseIndexes( int fieldNumber; Object fieldPath; if (fieldPathValue.isStringValue()) { - fieldPath = fieldPathValue.asStringValue().asString(); + fieldPath = fieldPathValue.asStringValue().toString(); fieldNumber = getFieldNumberFromFieldPath(fields, (String) fieldPath); } else { fieldNumber = fieldPathValue.asIntegerValue().asInt(); @@ -208,7 +208,7 @@ private Map parseIndexes( throw new TarantoolClientException("Unsupported index metadata format: key '" + INDEX_PARTS_TYPE_KEY + "' must have string value"); } - String fieldType = fieldTypeValue.asStringValue().asString(); + String fieldType = fieldTypeValue.asStringValue().toString(); return new TarantoolIndexPartMetadataImpl<>(fieldNumber, fieldType, fieldPath); }) diff --git a/src/main/java/io/tarantool/driver/core/metadata/TarantoolIndexMetadataConverter.java b/src/main/java/io/tarantool/driver/core/metadata/TarantoolIndexMetadataConverter.java index 1d8371c1..8c52f4fb 100644 --- a/src/main/java/io/tarantool/driver/core/metadata/TarantoolIndexMetadataConverter.java +++ b/src/main/java/io/tarantool/driver/core/metadata/TarantoolIndexMetadataConverter.java @@ -61,13 +61,13 @@ public TarantoolIndexMetadata fromValue(ArrayValue value) { indexParts = indexPartsValue.list().stream() .map(partValue -> new TarantoolIndexPartMetadataImpl<>( partValue.asArrayValue().get(0).asIntegerValue().asInt(), - partValue.asArrayValue().get(1).asStringValue().asString() + partValue.asArrayValue().get(1).asStringValue().toString() )).collect(Collectors.toList()); } else { indexParts = indexPartsValue.list().stream() .map(partValue -> new TarantoolIndexPartMetadataImpl<>( partValue.asMapValue().map().get(INDEX_FIELD_KEY).asIntegerValue().asInt(), - partValue.asMapValue().map().get(INDEX_TYPE_KEY).asStringValue().asString() + partValue.asMapValue().map().get(INDEX_TYPE_KEY).asStringValue().toString() )).collect(Collectors.toList()); } } diff --git a/src/main/java/io/tarantool/driver/mappers/converters/value/defaults/DefaultStringValueToCharacterConverter.java b/src/main/java/io/tarantool/driver/mappers/converters/value/defaults/DefaultStringValueToCharacterConverter.java index d98d4302..cff5d8a8 100644 --- a/src/main/java/io/tarantool/driver/mappers/converters/value/defaults/DefaultStringValueToCharacterConverter.java +++ b/src/main/java/io/tarantool/driver/mappers/converters/value/defaults/DefaultStringValueToCharacterConverter.java @@ -15,13 +15,13 @@ public class DefaultStringValueToCharacterConverter implements ValueConverter new CustomTuple(v.get(0).asIntegerValue().asInt(), v.get(1).asStringValue().asString())) + * (v) -> new CustomTuple(v.get(0).asIntegerValue().asInt(), v.get(1).asStringValue().toString())) * .get(); * * customTuples.forEach(