[RheaKVStore] is there any API support of ceilingEntry or ceiling key search?
See original GitHub issueYour 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:
- Created 4 years ago
- Comments:13 (12 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
好的,谢谢,我按新增接口的方式先实现一版。
欢迎参与 jraft,我个人还是倾向于增加新的 reverseScan 接口,职责单一更清晰