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 partial prefix searching #3

Closed
wants to merge 1 commit into from

Conversation

iverberk
Copy link

This change aims to provide the necessary groundwork for hashicorp/nomad#54 and is related to hashicorp/go-memdb#8.

This change makes it possible to search for a partial prefix and generate all underlying entries from that node onwards. This does not yet include a full test for the new function. We would like to collaborate on providing that.

When a given prefix is not fully present within the tree, instead of returning
nil, return the current node which represents the largest prefix up until that
point. This node can be used as a root to find all remaining entries that start
with the prefix.
@dadgar
Copy link
Contributor

dadgar commented Dec 15, 2015

Closing as this is not needed to accomplish your goal and can be done using the existing SeekPrefix.

@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