Class KeyRecipeCache

java.lang.Object
com.google.cloud.spanner.spi.v1.KeyRecipeCache

@InternalApi public final class KeyRecipeCache extends Object
  • Constructor Details

    • KeyRecipeCache

      public KeyRecipeCache()
  • Method Details

    • addRecipes

      public void addRecipes(RecipeList recipeList)
      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

      public void computeKeys(ReadRequest.Builder reqBuilder)
    • computeKeys

      public void computeKeys(ExecuteSqlRequest.Builder reqBuilder)
    • mutationToTargetRange

      public TargetRange mutationToTargetRange(Mutation mutation)
    • clear

      public void clear()