Package com.google.cloud.spanner.spi.v1
Class KeyRecipeCache
java.lang.Object
com.google.cloud.spanner.spi.v1.KeyRecipeCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecipes(RecipeList recipeList) Applies recipes from a server CacheUpdate.voidclear()voidcomputeKeys(ExecuteSqlRequest.Builder reqBuilder) voidcomputeKeys(ReadRequest.Builder reqBuilder) mutationToTargetRange(Mutation mutation)
-
Constructor Details
-
KeyRecipeCache
public KeyRecipeCache()
-
-
Method Details
-
addRecipes
Applies recipes from a server CacheUpdate.This is expected to be called only when responses include new recipes, not on every request. It is synchronized to atomically update schema generation and cache contents.
-
computeKeys
-
computeKeys
-
mutationToTargetRange
-
clear
public void clear()
-