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

Why does RDtFlag have 3 fields? #100

Open
danqing opened this issue May 17, 2015 · 2 comments
Open

Why does RDtFlag have 3 fields? #100

danqing opened this issue May 17, 2015 · 2 comments

Comments

@danqing
Copy link

danqing commented May 17, 2015

I'm having trouble understanding the following:

type RDtFlag struct {
    Value    bool
    Enabled  bool
    Disabled bool
}

Flag should just be a boolean, and if that's the case, why do we need Value, Enabled and Disabled? In particular, can it both be Enabled and Disabled, and if not, why do we need two?

@danqing
Copy link
Author

danqing commented May 17, 2015

Also, it's kind of unrelated, but I think it will be great if you can give some quick examples of the intended way to use Riak data types in this library. I think that will clear a lot of things out.

Do you think you can give an example that:

Creates and stores a riak map (containing some sub-types) > Searches for it using one of its fields > Modifies it and stores it again

It seems that data types are the way to go for Riak 2+, and I'd hope that there can be some docs covering them. Thanks!

@jialic
Copy link

jialic commented Jul 14, 2015

Same question here. Hope there are examples of using datatypes.

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

No branches or pull requests

2 participants