-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1777 from kuzudb/recursive-rel-api-binding
Add API bindings for recursive rel type
- Loading branch information
Showing
10 changed files
with
164 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package com.kuzudb; | ||
|
||
public class KuzuInternalID { | ||
public long table_id; | ||
public long tableId; | ||
public long offset; | ||
|
||
public KuzuInternalID(long table_id, long offset) { | ||
this.table_id = table_id; | ||
public KuzuInternalID(long tableId, long offset) { | ||
this.tableId = tableId; | ||
this.offset = offset; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
tools/java_api/src/main/java/com/kuzudb/KuzuValueRecursiveRelUtil.java
This file contains 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,11 @@ | ||
package com.kuzudb; | ||
|
||
public class KuzuValueRecursiveRelUtil { | ||
public static KuzuValue getNodeList(KuzuValue value) throws KuzuObjectRefDestroyedException { | ||
return KuzuValueStructUtil.getValueByIndex(value, 0); | ||
} | ||
|
||
public static KuzuValue getRelList(KuzuValue value) throws KuzuObjectRefDestroyedException { | ||
return KuzuValueStructUtil.getValueByIndex(value, 1); | ||
} | ||
} |
This file contains 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 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 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 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 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