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

Load segments from remote storage #106

Open
gopik opened this issue Dec 24, 2021 · 0 comments
Open

Load segments from remote storage #106

gopik opened this issue Dec 24, 2021 · 0 comments

Comments

@gopik
Copy link

gopik commented Dec 24, 2021

I would like to be able to store the index in an object store. This needs the segment implementation to be able to load segment data from remote storage. Current implementation is tightly coupled to local file system via mmap of an os.File.

My proposal is to replace mm field in Segment struct with the slice interface like:

type Slice interface {
func range(start, end int) []byte
func len() int
}

and allow a custom slice implementation that manages data.

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

1 participant