Class ConditionalRowMutation

    • Method Detail

      • create

        public static ConditionalRowMutation create​(String tableId,
                                                    com.google.protobuf.ByteString rowKey)
        Creates a new instance of the mutation builder.
      • then

        public ConditionalRowMutation then​(@Nonnull
                                           Mutation mutation)
        Adds changes to be atomically applied to the specified row if the condition yields at least one cell when applied to the row.

        Each mutation can specify multiple changes and the changes are accumulated each time this method is called. Mutations are applied in order, meaning that earlier mutations can be masked by later ones. Must contain at least one entry if otherwise(Mutation) is empty, and at most 100000.

      • otherwise

        public ConditionalRowMutation otherwise​(@Nonnull
                                                Mutation mutation)
        Adds changes to be atomically applied to the specified row if the condition does not yields any cells when applied to the row.

        Each mutation can specify multiple changes and the changes are accumulated each time this method is called. Mutations are applied in order, meaning that earlier mutations can be masked by later ones. Must contain at least one entry if then(Mutation) is empty, and at most 100000.

      • toProto

        @InternalApi
        public CheckAndMutateRowRequest toProto​(com.google.cloud.bigtable.data.v2.internal.RequestContext requestContext)
        Creates the underlying CheckAndMutateRowRequest protobuf.

        This method is considered an internal implementation detail and not meant to be used by applications.