Skip to content

Commit

Permalink
feat(interactive): Refine the GrootClient for concurrent and async wr…
Browse files Browse the repository at this point in the history
…ite. (alibaba#3113)
  • Loading branch information
siyuan0322 authored Aug 16, 2023
1 parent 361a280 commit ba9951a
Show file tree
Hide file tree
Showing 13 changed files with 852 additions and 294 deletions.
11 changes: 11 additions & 0 deletions docs/storage_engine/groot.md
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,10 @@ Else, please proceed to ingest and commit.

Groot graph have several methods for realtime write as follows:

#### Python

Refer to [test_store_service.py](https://github.com/alibaba/GraphScope/blob/main/python/graphscope/tests/kubernetes/test_store_service.py) for examples.

```python
# Inserts one vertex
def insert_vertex(self, vertex: VertexRecordKey, properties: dict) -> int: pass
Expand Down Expand Up @@ -549,6 +553,13 @@ class EdgeRecordKey:
self.eid: int = eid # Only required in update and delete operation
```


#### Java

We also have a java sdk for realtime write and schema management.

Refer to [RealtimeWrite.java](https://github.com/alibaba/GraphScope/blob/main/interactive_engine/groot-client/src/main/java/com/alibaba/graphscope/groot/sdk/example/RealtimeWrite.java) for examples.

## Uninstalling and Restarting

### Uninstall Groot
Expand Down
17 changes: 17 additions & 0 deletions interactive_engine/groot-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,23 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>com.alibaba.graphscope.groot.sdk.example.RealtimeWrite</argument>
</arguments>
<mainClass>com.alibaba.graphscope.groot.sdk.example.RealtimeWrite</mainClass>
<complianceLevel>1.11</complianceLevel>
<killAfter>-1</killAfter>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
Loading

0 comments on commit ba9951a

Please sign in to comment.