This repository was archived by the owner on Apr 7, 2026. It is now read-only.
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
5 files changed
Lines changed: 5618 additions & 0 deletions
File tree
- google-cloud-spanner/src
- main/java/com/google/cloud/spanner/spi/v1
- test
- java/com/google/cloud/spanner/spi/v1
- resources
0 commit comments