Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support shard-index and vertex + sortkey prefix query #574

Merged
merged 30 commits into from
Aug 6, 2019
Merged

Conversation

zhoney
Copy link
Contributor

@zhoney zhoney commented Jun 18, 2019

implemented: #270 and #398

Change-Id: I444b67b7f57a18fd32c29d54d776cf411ccd847a

@codecov
Copy link

codecov bot commented Jun 18, 2019

Codecov Report

Merging #574 into master will decrease coverage by 0.35%.
The diff coverage is 87.72%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #574      +/-   ##
============================================
- Coverage     71.94%   71.58%   -0.36%     
- Complexity     3640     3686      +46     
============================================
  Files           219      218       -1     
  Lines         16882    17289     +407     
  Branches       2399     2435      +36     
============================================
+ Hits          12145    12376     +231     
- Misses         3475     3631     +156     
- Partials       1262     1282      +20
Impacted Files Coverage Δ Complexity Δ
.../hugegraph/backend/serializer/TableSerializer.java 81.34% <ø> (ø) 52 <0> (ø) ⬇️
.../java/com/baidu/hugegraph/version/CoreVersion.java 80% <ø> (ø) 2 <0> (ø) ⬇️
...java/com/baidu/hugegraph/type/define/DataType.java 87.32% <0%> (-2.54%) 36 <0> (ø)
...raph/backend/store/rocksdbsst/RocksDBSstStore.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...in/java/com/baidu/hugegraph/schema/IndexLabel.java 69.11% <0%> (ø) 25 <2> (ø) ⬇️
...hugegraph/backend/store/rocksdb/RocksDBTables.java 55.85% <100%> (-0.47%) 0 <0> (ø)
...idu/hugegraph/backend/store/hbase/HbaseTables.java 87.5% <100%> (+2.5%) 0 <0> (ø) ⬇️
...kend/store/postgresql/PostgresqlStoreProvider.java 91.89% <100%> (+0.98%) 5 <1> (ø) ⬇️
...aidu/hugegraph/backend/store/hbase/HbaseStore.java 78.04% <100%> (+1.12%) 29 <0> (ø) ⬇️
...egraph/backend/store/cassandra/CassandraStore.java 69.02% <100%> (+0.46%) 48 <0> (ø) ⬇️
... and 47 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 674a5e7...91dcacb. Read the comment docs.

@zhoney zhoney force-pushed the shard-index branch 3 times, most recently from 95b5578 to dc96d65 Compare June 26, 2019 08:42
return false;
}
List<Id> prefix = sortKeys.subList(0, queryKeys.size());
return queryKeys.containsAll(prefix);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can also copy from #512 if can't rebase

implemented: #270 and #398

Change-Id: I444b67b7f57a18fd32c29d54d776cf411ccd847a
Change-Id: I3b007538ec5279480f85f42cb126e13c3028dfde
Change-Id: I1e7a7fcf06851e306b723e05c4aad6fe4664c3ef
Change-Id: Ied584d80d05264ec11bb9d03c30bc73e9793ac97
Change-Id: I86ad27ab094660cdf2b4dff0cff31fc36e79683d
Change-Id: I829aa16a0c89af9d16de4b2d18b8afc0f886178c
Change-Id: Ibde8426fee990e257b3f911815b2adbd25526d8c
Change-Id: I64df619d14947fe8441c8eb0ab8cb9f4b302607d
and support prefix + range query

Change-Id: Ia60d2422039c7376180603e6b81c40a785e320d7
Change-Id: I03e1421b599e4b57756948894f8b6253b69f25b6
…inarySerializer

Change-Id: Ib5f4e64a5e68727b5765076d5458ccc8dd3443c0
Change-Id: I6368833708b7524ad37fc30cab230740c23cd17a
Change-Id: I704a760827a0818457b9afdde102f2b297b68f32
@zhoney zhoney force-pushed the shard-index branch 2 times, most recently from 5db717a to 19e6b80 Compare July 31, 2019 03:38
Change-Id: Ibd9f83d8d42bdce4d9b925b362d9af74a081df1e
Change-Id: Ia8ca6815e396e839dc41d5daadee9db65f50f40e
Change-Id: I409390a5753bdd2052ea4dd12218fde818ac1ad1
Change-Id: Id2b46cfbff907b26862e3225fcd51c556a22b9bf
Change-Id: I93f15c5df19a8fd60b66d73e0e5e40aa83e928e6
graph().addVertex(T.label, "number", "id", 9,
"long", Long.MAX_VALUE - 1);
graph().addVertex(T.label, "number", "id", 10,
"long", Long.MIN_VALUE + 1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add this kind case for float/double in edge test

Change-Id: Ieb23f49144a16e5f5bec097381144f9bb1ccb0c0
return false;
}
List<Id> prefix = sortKeys.subList(0, queryKeys.size());
return queryKeys.containsAll(prefix);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can also copy from #512 if can't rebase

Change-Id: I077d193d17fd136e7b759eb25b2d10b51c009b8b
Change-Id: Ie412a104f66781da5069a2d078b6758b2ec7a912
Change-Id: I69b80144bfd31939938404f2ff15edc5bdbd9998
Change-Id: I9680de412db11093e199b32b344e40696ac5daf8
Change-Id: Icca9bbc060741d7d3c4c090bc0bc5c664a45a252
@Linary Linary merged commit 0e66c64 into master Aug 6, 2019
@Linary Linary deleted the shard-index branch August 6, 2019 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants