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

Add superset test for bloomfilters #1100

Closed
wants to merge 1 commit into from
Closed

Conversation

krl
Copy link
Contributor

@krl krl commented Apr 20, 2015

This should be the last thing i need for now...

@jbenet jbenet added status/in-progress In progress sprint and removed status/in-progress In progress labels Apr 20, 2015
@jbenet jbenet self-assigned this Apr 20, 2015
@@ -15,6 +15,7 @@ type Filter interface {
Find([]byte) bool
Merge(Filter) (Filter, error)
HammingDistance(Filter) (int, error)
SupersetOf(Filter) (bool, error)
Copy link
Member

Choose a reason for hiding this comment

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

I'm thinking this is the wrong way to add these extensions-- they're putting everything into a single interface. I think maybe the container/heap -- http://golang.org/pkg/container/heap/ -- approach is the right one.

So:

func Superset(a, b Filter) (bool, error) {
  // return whether a is superset of b
}

Copy link
Member

Choose a reason for hiding this comment

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

the strings package is similar: http://golang.org/pkg/strings/

@jbenet
Copy link
Member

jbenet commented Jun 30, 2015

@krl still want this in, or no? Has been siting here for a while. If we want it in, let's reopen and fix it

@jbenet jbenet closed this Jun 30, 2015
@jbenet jbenet removed the backlog label Jun 30, 2015
@krl
Copy link
Contributor Author

krl commented Jul 3, 2015

Juan Batiz-Benet notifications@github.com writes:

Closed #1100.


Reply to this email directly or view it on GitHub:
#1100 (comment)

No worries, i will probably rewrite anything that depends on this stuff.

@Kubuxu Kubuxu deleted the bloomfilter-superset-match branch February 27, 2017 20:35
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