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 range sortKey feature #296

Merged
merged 1 commit into from
Dec 29, 2018
Merged

Support range sortKey feature #296

merged 1 commit into from
Dec 29, 2018

Conversation

javeme
Copy link
Contributor

@javeme javeme commented Dec 21, 2018

implement #271

Change-Id: Ib618c45bc6169a0fb7632dbbf0fb29b7ee0a08e3

@javeme javeme force-pushed the range-sortkey branch 5 times, most recently from 9fafb06 to 2692c3d Compare December 25, 2018 12:21
@javeme javeme force-pushed the range-sortkey branch 3 times, most recently from 3d470cb to 405be06 Compare December 26, 2018 09:04
int cmp1 = Bytes.compare(element.id().asBytes(), this.start.asBytes());
int cmp2 = Bytes.compare(element.id().asBytes(), this.end.asBytes());
return (this.inclusiveStart ? cmp1 >= 0 : cmp1 > 0) &&
(this.inclusiveEnd ? cmp2 <= 0 : cmp1 < 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

(this.inclusiveEnd ? cmp2 <= 0 : cmp2 < 0);

@@ -136,6 +165,17 @@ public HugeType type() {
return valid;
}

public <V> Object serialValue(V value) {
V validValue = this.validValue(value);
E.checkArgument(value != null,
Copy link
Contributor

Choose a reason for hiding this comment

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

validValue

graph.tx().commit();
System.exit(0);
Copy link
Contributor

Choose a reason for hiding this comment

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

delete


public IdPrefixQuery(Query originQuery,
Id start, boolean inclusiveStart, Id prefix) {
this(originQuery.resultType(), originQuery, start, true, prefix);
Copy link
Contributor

Choose a reason for hiding this comment

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

true -> inclusiveStart

assert condition instanceof Condition.Relation;
Condition.Relation r = (Condition.Relation) condition;
Condition.Relation sys = new Condition.SyspropRelation(
HugeKeys.SORT_VALUES,
Copy link
Contributor

Choose a reason for hiding this comment

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

Adjust the alignment

implement #271

Change-Id: Ib618c45bc6169a0fb7632dbbf0fb29b7ee0a08e3
@zhoney zhoney merged commit 7164a45 into master Dec 29, 2018
@zhoney zhoney deleted the range-sortkey branch December 29, 2018 06: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.

3 participants