From 00e50be811faf346d8fa26fac30ffd597a817c13 Mon Sep 17 00:00:00 2001 From: vaughn Date: Mon, 19 Dec 2022 17:11:17 +0800 Subject: [PATCH] chore: don't support null properties --- .../org/apache/hugegraph/structure/HugeFeatures.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hugegraph-core/src/main/java/org/apache/hugegraph/structure/HugeFeatures.java b/hugegraph-core/src/main/java/org/apache/hugegraph/structure/HugeFeatures.java index 85517c9d61..5fddd23039 100644 --- a/hugegraph-core/src/main/java/org/apache/hugegraph/structure/HugeFeatures.java +++ b/hugegraph-core/src/main/java/org/apache/hugegraph/structure/HugeFeatures.java @@ -271,6 +271,11 @@ public VertexProperty.Cardinality getCardinality(final String key) { return VertexProperty.Cardinality.single; } + @Override + public boolean supportsNullPropertyValues() { + return false; + } + public boolean supportsDefaultLabel() { return true; } @@ -291,6 +296,11 @@ public class HugeEdgeFeatures extends HugeElementFeatures public EdgePropertyFeatures properties() { return this.edgePropertyFeatures; } + + @Override + public boolean supportsNullPropertyValues() { + return false; + } } public class HugeDataTypeFeatures implements DataTypeFeatures {