question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[RheaKVStore] is there any API support of ceilingEntry or ceiling key search?

See original GitHub issue

Your question

Is there any API to support ceilingEntry or ceilling key on RheaKVStore? Ceilling key means the least key greater than or equal to the given key.

Describe your question clearly

Your scenes

I want to have an interface/API to do prefix scan. I see there are some APIs about get/scan/iterator, it looks they are exact key matching, not prefix matching. Describe your use scenes (why need this feature)

Your advice

Describe the advice or solution you’d like

Environment

  • SOFAJRaft version:
  • JVM version (e.g. java -version):
  • OS version (e.g. uname -a):
  • Maven version:
  • IDE version:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
shibdcommented, Apr 17, 2020

好的,谢谢,我按新增接口的方式先实现一版。

0reactions
fengjiachuncommented, Apr 17, 2020

欢迎参与 jraft,我个人还是倾向于增加新的 reverseScan 接口,职责单一更清晰

Read more comments on GitHub >

github_iconTop Results From Across the Web

TreeMap (Java Platform SE 7 ) - Oracle Help Center
Returns a key-value mapping associated with the least key greater than or equal to the given key, or null if there is no...
Read more >
TreeMap ceilingEntry() and ceilingKey() methods in Java
1. ceilingEntry(K Key) : It is used to return a key-value mapping associated with the least key greater than or equal to the...
Read more >
java.util.TreeMap.ceilingEntry() Method - Tutorialspoint
The ceilingEntry (K key) method is used to return a key-value mapping associated with the least key greater than or equal to the...
Read more >
What is the TreeMap.ceilingEntry() method in Java?
The TreeMap.ceilingEntry() method is used to return a key-value pair of the least key greater than or equal to the key passed as...
Read more >
c# - Equivalents in C Sharp of Java's NavigableMap.floorEntry ...
Then, with help to the answer here, we determine if the key exists, and if not, we get the floor and ceiling values...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found