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

Allow Stream to provide a hint for end of stream #337

Open
simerplaha opened this issue Dec 8, 2021 · 0 comments
Open

Allow Stream to provide a hint for end of stream #337

simerplaha opened this issue Dec 8, 2021 · 0 comments

Comments

@simerplaha
Copy link
Owner

simerplaha commented Dec 8, 2021

A Stream allows iteration from, before, after, fromOrBefore or fromOrAfter a key.

For example:

Stream<String> stream =
  map
    .from(100)
    .map(KeyVal::value);

If an ending hint is provided the core should be able to perform faster iteration with better caching and reduced IOps.

Example API

Stream<String> stream =
  map
    .from(100)
    .toHint(1000000) //hint or ending hint
    .map(KeyVal::value);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant