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

Introduce the ability to find multiple object based on a common prefix #8

Closed
wants to merge 1 commit into from

Conversation

iverberk
Copy link

This change aims to provide the necessary groundwork for hashicorp/nomad#54. It is also related to hashicorp/go-immutable-radix#3.

It introduces the ability to search for objects that share a common prefix. As it is implemented currently, it will only find results for prefixes that are of even length when searching for UUID's. This needs to be discussed further.

With the new 'Find' function it is possible to get set of different objects
that all share a common prefix.
@dadgar
Copy link
Contributor

dadgar commented Dec 15, 2015

go-memdb already has this actually. You can see its usage here. The way to use it is you append "_prefix" to the indexer you are using.

@dadgar dadgar closed this Dec 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants