Commit f71ee0e
committed
feat: add KeyRecipe and KeyRecipeCache
This commit adds the key recipe system for translating requests to
sortable string format (ssformat) keys for routing.
Key components:
- KeyRecipe: Translates requests to ssformat keys using server-provided recipes
- KeyRecipeCache: Caches recipes by request fingerprint for efficient reuse
- PreparedRead: Helper class for preparing read requests with routing info
- RecipeGoldenTest: Golden tests for recipe encoding validation
- RecipeTestCases: Test case definitions for recipe tests
This is part of the experimental location-aware routing for improved latency.1 parent a6b8fc2 commit f71ee0e
File tree
5 files changed
+5618
-0
lines changed- google-cloud-spanner/src
- main/java/com/google/cloud/spanner/spi/v1
- test
- java/com/google/cloud/spanner/spi/v1
- resources
5 files changed
+5618
-0
lines changed
0 commit comments