-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add spring-data v3.5 module #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f17a431
feat: add spring-data v3.5 module
Alex-pvl 1494ce7
test: increase timeouts
Alex-pvl 3abe270
refactor(spring-data-35): cleanup pom.xml
nickkkccc d401698
build(spring-data): bump deps version
Alex-pvl e4aa8cf
docs(spring-data): bump deps version
Alex-pvl 0088110
docs(spring-data): update changelog
Alex-pvl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
|
|
||
| <name>tarantool-spring-data-35</name> | ||
| <description>Minimalistic java connector for Tarantool versions 2.11+ based on Netty framework</description> | ||
| <url>https://tarantool.io</url> | ||
|
|
||
| <parent> | ||
| <groupId>io.tarantool</groupId> | ||
| <artifactId>tarantool-spring-data</artifactId> | ||
| <version>2.0.0-SNAPSHOT</version> | ||
| </parent> | ||
|
|
||
| <artifactId>tarantool-spring-data-35</artifactId> | ||
| <packaging>jar</packaging> | ||
|
|
||
| <properties> | ||
| <maven.compiler.source>17</maven.compiler.source> | ||
| <maven.compiler.target>17</maven.compiler.target> | ||
| <spring.boot.version>3.5.8</spring.boot.version> | ||
nickkkccc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <shared.dir>${project.parent.parent.basedir}/tarantool-shared-resources/</shared.dir> | ||
| <license.header.file>${project.parent.parent.basedir}/LICENSE_HEADER.txt</license.header.file> | ||
| </properties> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>io.tarantool</groupId> | ||
| <artifactId>tarantool-spring-data-core</artifactId> | ||
| </dependency> | ||
| </dependencies> | ||
| </project> | ||
74 changes: 74 additions & 0 deletions
74
...-spring-data-35/src/main/java/io/tarantool/spring/data35/TarantoolBoxKeyValueAdapter.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| /* | ||
| * Copyright (c) 2025 VK DIGITAL TECHNOLOGIES LIMITED LIABILITY COMPANY | ||
| * All Rights Reserved. | ||
| */ | ||
|
|
||
| package io.tarantool.spring.data35; | ||
|
|
||
| import java.util.Map; | ||
|
|
||
| import org.springframework.data.keyvalue.core.AbstractKeyValueAdapter; | ||
| import org.springframework.data.util.CloseableIterator; | ||
| import org.springframework.lang.NonNull; | ||
|
|
||
| import io.tarantool.client.box.TarantoolBoxClient; | ||
| import io.tarantool.spring.data.ProxyTarantoolBoxKeyValueAdapter; | ||
|
|
||
| public class TarantoolBoxKeyValueAdapter extends AbstractKeyValueAdapter { | ||
|
|
||
| private final ProxyTarantoolBoxKeyValueAdapter adapter; | ||
|
|
||
| public TarantoolBoxKeyValueAdapter(@NonNull TarantoolBoxClient tarantoolBoxClient) { | ||
| adapter = new ProxyTarantoolBoxKeyValueAdapter(tarantoolBoxClient); | ||
| } | ||
|
|
||
| @Override | ||
| public Object put(Object id, Object item, String keyspace) { | ||
| return adapter.put(id, item, keyspace); | ||
| } | ||
|
|
||
| @Override | ||
| public boolean contains(Object id, String keyspace) { | ||
| return adapter.contains(id, keyspace); | ||
| } | ||
|
|
||
| @Override | ||
| public Object get(Object id, String keyspace) { | ||
| return adapter.get(id, keyspace); | ||
| } | ||
|
|
||
| @Override | ||
| public Object delete(Object id, String keyspace) { | ||
| return adapter.delete(id, keyspace); | ||
| } | ||
|
|
||
| @Override | ||
| public Iterable<?> getAllOf(String keyspace) { | ||
| return adapter.getAllOf(keyspace); | ||
| } | ||
|
|
||
| @Override | ||
| public void deleteAllOf(String keyspace) { | ||
| adapter.deleteAllOf(keyspace); | ||
| } | ||
|
|
||
| @Override | ||
| public void clear() { | ||
| adapter.clear(); | ||
| } | ||
|
|
||
| @Override | ||
| public long count(String keyspace) { | ||
| return adapter.count(keyspace); | ||
| } | ||
|
|
||
| @Override | ||
| public void destroy() throws Exception { | ||
| adapter.destroy(); | ||
| } | ||
|
|
||
| @Override | ||
| public CloseableIterator<Map.Entry<Object, Object>> entries(String keyspace) { | ||
| throw new UnsupportedOperationException("Not implemented yet"); | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.