Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Semantics for query start and end records #239

Open
jfunston opened this issue Oct 4, 2021 · 0 comments
Open

Semantics for query start and end records #239

jfunston opened this issue Oct 4, 2021 · 0 comments

Comments

@jfunston
Copy link
Contributor

jfunston commented Oct 4, 2021

Certain types of scans are difficult or awkward to represent with the current query semantics. For example, prefix scans need to be specified by leaving fields unspecified and having the start and end records be the same, which doesn't indicate intent well. Another problem is being able to scan to the end of a particular field and include all records.

We should add these two methods to SKVRecord: serializeStopLow() and serializeStopHigh(). These methods will add the correct bytes to serialized key in the same way it is done now automatically. Calling these methods will prevent further serialization. The query will ensure that either the records are fully specified or one of these methods has been called.

We can also remove the user-specified scan direction and automatically determine it from the start and end records.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant