Interface CommitResponse.CommitStatsOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long getMutationCount()
      The total number of mutations for the transaction.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getMutationCount

        long getMutationCount()
         The total number of mutations for the transaction. Knowing the
         `mutation_count` value can help you maximize the number of mutations
         in a transaction and minimize the number of API round trips. You can
         also monitor this value to prevent transactions from exceeding the system
         [limit](https://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data).
         If the number of mutations exceeds the limit, the server returns
         [INVALID_ARGUMENT](https://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.INVALID_ARGUMENT).
         
        int64 mutation_count = 1;
        Returns:
        The mutationCount.