Skip to content

Commit bed52ab

Browse files
committed
feat: generate tinkerpop communication edge
Signed-off-by: Otavio Santana <[email protected]>
1 parent 471725b commit bed52ab

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

jnosql-tinkerpop/src/main/java/org/eclipse/jnosql/databases/tinkerpop/communication/DefaultTinkerpopGraphDatabaseManager.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@
2020
import org.apache.tinkerpop.gremlin.structure.Vertex;
2121
import org.eclipse.jnosql.communication.CommunicationException;
2222
import org.eclipse.jnosql.communication.ValueUtil;
23+
import org.eclipse.jnosql.communication.graph.CommunicationEdge;
2324
import org.eclipse.jnosql.communication.semistructured.CommunicationEntity;
2425
import org.eclipse.jnosql.communication.semistructured.DeleteQuery;
2526
import org.eclipse.jnosql.communication.semistructured.SelectQuery;
2627

2728
import java.time.Duration;
2829
import java.util.Iterator;
30+
import java.util.Map;
2931
import java.util.Objects;
32+
import java.util.Optional;
3033
import java.util.stream.Stream;
3134

3235
import static org.apache.tinkerpop.gremlin.process.traversal.Order.asc;
@@ -167,4 +170,24 @@ public void close() {
167170
throw new CommunicationException("There is an issue when close the Graph connection", e);
168171
}
169172
}
173+
174+
@Override
175+
public CommunicationEdge edge(CommunicationEntity source, String label, CommunicationEntity target, Map<String, Object> properties) {
176+
return null;
177+
}
178+
179+
@Override
180+
public void remove(CommunicationEntity source, String label, CommunicationEntity target) {
181+
182+
}
183+
184+
@Override
185+
public <K> void deleteEdge(K id) {
186+
187+
}
188+
189+
@Override
190+
public <K> Optional<CommunicationEdge> findEdgeById(K id) {
191+
return Optional.empty();
192+
}
170193
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
*
3+
* Copyright (c) 2025 Contributors to the Eclipse Foundation
4+
* All rights reserved. This program and the accompanying materials
5+
* are made available under the terms of the Eclipse Public License v1.0
6+
* and Apache License v2.0 which accompanies this distribution.
7+
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
8+
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php.
9+
*
10+
* You may elect to redistribute this code under either of these licenses.
11+
*
12+
* Contributors:
13+
*
14+
* Otavio Santana
15+
*
16+
*/
17+
package org.eclipse.jnosql.databases.tinkerpop.communication;
18+
19+
import org.eclipse.jnosql.communication.graph.CommunicationEdge;
20+
import org.eclipse.jnosql.communication.semistructured.CommunicationEntity;
21+
22+
import java.util.Map;
23+
24+
record TinkerpopCommunicationEdge(Object id, CommunicationEntity source, CommunicationEntity target, String label, Map<String, Object> properties) implements CommunicationEdge {
25+
}

0 commit comments

Comments
 (0)