Class UpdateResult


  • public final class UpdateResult
    extends Object
    Update result - modifications count and keys to re-run query with, if needed.
    • Field Detail

      • ONE

        public static final UpdateResult ONE
        Result to return for operations that affected 1 item - mostly to be used for fast updates and deletes.
      • ZERO

        public static final UpdateResult ZERO
        Result to return for operations that affected 0 items - mostly to be used for fast updates and deletes.
    • Constructor Detail

      • UpdateResult

        public UpdateResult​(long cnt,
                            Object[] errKeys)
        Constructor.
        Parameters:
        cnt - Updated rows count.
        errKeys - Array of erroneous keys.
      • UpdateResult

        public UpdateResult​(long cnt,
                            Object[] errKeys,
                            PartitionResult partRes)
        Constructor.
        Parameters:
        cnt - Updated rows count.
        errKeys - Array of erroneous keys.
        partRes - Partition result.
    • Method Detail

      • counter

        public long counter()
        Returns:
        Update counter.
      • errorKeys

        public Object[] errorKeys()
        Returns:
        Error keys.
      • throwIfError

        public void throwIfError()
        Check update result for erroneous keys and throws concurrent update exception if necessary.
      • partitionResult

        public PartitionResult partitionResult()
        Returns:
        Partition result.