Sortable String Format encoding utilities for Spanner keys.
This class provides methods to encode various data types into a byte format that preserves
lexicographic ordering. The encoding supports both increasing and decreasing sort orders.
Appends a boolean value in descending (decreasing) sort order.
Boolean values are encoded using unsigned integer encoding where false=0 and true=1, then
inverted for descending order. This preserves reverse ordering where true < false.
Makes the given key a prefix successor. This means that the returned key is the smallest
possible key that is larger than the input key, and that does not have the input key as a
prefix.
This is done by flipping the least significant bit of the last byte of the key.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-01-21 UTC."],[],[]]