diff --git a/hugegraph-api/pom.xml b/hugegraph-api/pom.xml
index 2b20c21659..0ef7194e7e 100644
--- a/hugegraph-api/pom.xml
+++ b/hugegraph-api/pom.xml
@@ -5,7 +5,7 @@
hugegraph
com.baidu.hugegraph
- 0.9.0
+ 0.9.1
4.0.0
diff --git a/hugegraph-cassandra/pom.xml b/hugegraph-cassandra/pom.xml
index 4ba4f0bfc8..5f98a01252 100644
--- a/hugegraph-cassandra/pom.xml
+++ b/hugegraph-cassandra/pom.xml
@@ -5,7 +5,7 @@
hugegraph
com.baidu.hugegraph
- 0.9.0
+ 0.9.1
4.0.0
diff --git a/hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraStoreProvider.java b/hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraStoreProvider.java
index 70bfdd6074..402f7ab642 100644
--- a/hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraStoreProvider.java
+++ b/hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraStoreProvider.java
@@ -51,7 +51,8 @@ public String version() {
* Versions history:
* [1.0] HugeGraph-1328: supports backend table version checking
* [1.1] HugeGraph-1322: add support for full-text search
+ * [1.2] #296: support range sortKey feature
*/
- return "1.1";
+ return "1.2";
}
}
diff --git a/hugegraph-core/pom.xml b/hugegraph-core/pom.xml
index f0012c997e..01ec1f1520 100644
--- a/hugegraph-core/pom.xml
+++ b/hugegraph-core/pom.xml
@@ -5,7 +5,7 @@
com.baidu.hugegraph
hugegraph
- 0.9.0
+ 0.9.1
../pom.xml
hugegraph-core
@@ -19,7 +19,7 @@
com.baidu.hugegraph
hugegraph-common
- 1.5.3
+ 1.5.6
@@ -157,7 +157,7 @@
- 0.9.0.0
+ 0.9.1.0
diff --git a/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/query/Condition.java b/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/query/Condition.java
index d820198fc2..06edca2924 100644
--- a/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/query/Condition.java
+++ b/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/query/Condition.java
@@ -204,6 +204,10 @@ public boolean isLogic() {
this.type() == ConditionType.OR;
}
+ public boolean isFlattened() {
+ return this.isRelation();
+ }
+
public static Condition and(Condition left, Condition right) {
return new And(left, right);
}
@@ -393,6 +397,12 @@ public boolean test(HugeElement element) {
public Condition copy() {
return new And(this.left().copy(), this.right().copy());
}
+
+ @Override
+ public boolean isFlattened() {
+ // If this is flattened, its sub-condition should not be nested
+ return this.left().isRelation() && this.right().isRelation();
+ }
}
public static class Or extends BinCondition {
diff --git a/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/query/ConditionQuery.java b/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/query/ConditionQuery.java
index 005451cc2c..a83a755659 100644
--- a/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/query/ConditionQuery.java
+++ b/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/query/ConditionQuery.java
@@ -142,7 +142,7 @@ public Object condition(Object key) {
for (Condition c : this.conditions) {
if (c.isRelation()) {
Condition.Relation r = (Condition.Relation) c;
- if (r.key().equals(key)) {
+ if (r.key().equals(key) && r.relation() == RelationType.EQ) {
values.add(r.value());
}
}
@@ -277,11 +277,11 @@ public Set userpropKeys() {
/**
* This method is only used for secondary index scenario,
- * relation must be EQ
+ * its relation must be EQ
* @param fields the user property fields
- * @return the corresponding user property values of fileds
+ * @return the corresponding user property serial values of fields
*/
- public List