Class UpdateResult
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.UpdateResult
-
public final class UpdateResult extends Object
Update result - modifications count and keys to re-run query with, if needed.
-
-
Field Summary
Fields Modifier and Type Field Description static UpdateResultONEResult to return for operations that affected 1 item - mostly to be used for fast updates and deletes.static UpdateResultZEROResult to return for operations that affected 0 items - mostly to be used for fast updates and deletes.
-
Constructor Summary
Constructors Constructor Description UpdateResult(long cnt, Object[] errKeys)Constructor.UpdateResult(long cnt, Object[] errKeys, PartitionResult partRes)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcounter()Object[]errorKeys()PartitionResultpartitionResult()voidthrowIfError()Check update result for erroneous keys and throws concurrent update exception if necessary.
-
-
-
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.
-
-