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

Updates for Sets and GSets support. #8

Merged
merged 1 commit into from
Apr 9, 2021

Conversation

daniel020403
Copy link
Collaborator

No description provided.

@@ -519,8 +519,13 @@ Or we can see whether our gset includes a specific member:
```java
// Using our "citiesSet" from above:
Copy link

Choose a reason for hiding this comment

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

Is "citiesSet" still correct? Or should this now be "citiesGSet"?

@@ -165,7 +165,7 @@ Let's create a Riak gset stored in the key `2019-11-17` in the bucket `account-1
// before you perform operations on them:

Location citiesSet =
new Location(new Namespace("sets", "travel"), "cities");
new Location(new Namespace("gsets", "account-12345678"), "2019-11-17");
Copy link

Choose a reason for hiding this comment

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

I'd keep the gsets/travel/cities thing the same as from sets, as we add cities to it below.

Copy link

Choose a reason for hiding this comment

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

@daniel020403 Can you see this?

Set<BinaryValue> binarySet = response.getDatatype().view();

System.out.println(binarySet.contains(BinaryValue.createFromUtf8("Vancouver")));
System.out.println(binarySet.contains(BinaryValue.createFromUtf8("Ottawa")));
Copy link

Choose a reason for hiding this comment

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

Really requires a BinaryValue conversion for a string? Also, does it no longer work offline? Now requires a server fetch?

@pjaclark pjaclark merged commit fea3146 into TI-Tokyo:master Apr 9, 2021
@daniel020403 daniel020403 deleted the daniel-gsets-java branch April 13, 2021 09:20
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

2 participants