-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GAIA-IR] Map KeyId back into KeyName for labels and properties (#1615)
[IR-Core] provide id-name-mapping query in IR-Core [IR Compiler] parse label or property from id to name [IR Compiler] add ci tests of name mapping for vineyard and groot
- Loading branch information
1 parent
fa5718c
commit 76d3388
Showing
10 changed files
with
248 additions
and
285 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
16 changes: 16 additions & 0 deletions
16
...ervice/ir/compiler/src/main/java/com/alibaba/graphscope/common/jna/type/FfiKeyResult.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,16 @@ | ||
package com.alibaba.graphscope.common.jna.type; | ||
|
||
import com.alibaba.graphscope.common.jna.IrTypeMapper; | ||
import com.sun.jna.Structure; | ||
|
||
@Structure.FieldOrder({"keyName", "error"}) | ||
public class FfiKeyResult extends Structure { | ||
public FfiKeyResult() { | ||
super(IrTypeMapper.INSTANCE); | ||
} | ||
|
||
public static class ByValue extends FfiKeyResult implements Structure.ByValue {} | ||
|
||
public String keyName; | ||
public FfiError.ByValue error; | ||
} |
23 changes: 23 additions & 0 deletions
23
..._service/ir/compiler/src/main/java/com/alibaba/graphscope/common/jna/type/FfiKeyType.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,23 @@ | ||
package com.alibaba.graphscope.common.jna.type; | ||
|
||
import com.alibaba.graphscope.common.jna.IntEnum; | ||
|
||
public enum FfiKeyType implements IntEnum<FfiKeyType> { | ||
Entity, | ||
Relation, | ||
Column; | ||
|
||
@Override | ||
public int getInt() { | ||
return this.ordinal(); | ||
} | ||
|
||
@Override | ||
public FfiKeyType getEnum(int i) { | ||
FfiKeyType opts[] = values(); | ||
if (i < opts.length && i >= 0) { | ||
return opts[i]; | ||
} | ||
return null; | ||
} | ||
} |
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
Oops, something went wrong.