Class FastUpdate
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.dml.FastUpdate
-
public final class FastUpdate extends Object
Arguments for fast, query-less UPDATE or DELETE - key and, optionally, value and new value.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FastUpdatecreate(GridSqlElement key, GridSqlElement val, @Nullable GridSqlElement newVal)Create fast update instance.UpdateResultexecute(GridCacheAdapter cache, Object[] args)Perform single cache operation based on given args.
-
-
-
Method Detail
-
create
public static FastUpdate create(GridSqlElement key, GridSqlElement val, @Nullable @Nullable GridSqlElement newVal)
Create fast update instance.- Parameters:
key- Key element.val- Value element.newVal- New value element (if any)- Returns:
- Fast update.
-
execute
public UpdateResult execute(GridCacheAdapter cache, Object[] args) throws IgniteCheckedException
Perform single cache operation based on given args.- Parameters:
cache- Cache.args- Query parameters.- Returns:
- 1 if an item was affected, 0 otherwise.
- Throws:
IgniteCheckedException- if failed.
-
-