Examples of GridCacheOperation


Examples of org.gridgain.grid.kernal.processors.cache.GridCacheOperation

                catch (Throwable e) {
                    throw new GridRuntimeException("Transform closure must not throw any exceptions " +
                        "(transaction will be invalidated)", e);
                }

                GridCacheOperation op = val == null ? DELETE : UPDATE;

                return F.t(op, cctx.<V>unwrapTemporary(val), null);
            }
            catch (GridCacheFilterFailedException e) {
                assert false : "Empty filter failed for innerGet: " + e;
View Full Code Here

Examples of org.gridgain.grid.kernal.processors.cache.GridCacheOperation

        final boolean retval,
        final boolean rawRetval,
        final long ttl,
        @Nullable final GridPredicate<GridCacheEntry<K, V>>[] filter
    ) {
        final GridCacheOperation op = transformMap != null ? TRANSFORM : UPDATE;
        final Collection<? extends K> keys =
            map != null ? map.keySet() : transformMap != null ? transformMap.keySet() : null;
        final Collection<?> vals = map != null ? map.values() : transformMap != null ? transformMap.values() : null;
        final boolean storeEnabled = ctx.isStoreEnabled();
View Full Code Here

Examples of org.gridgain.grid.kernal.processors.cache.GridCacheOperation

        @Nullable GridCachePartialUpdateException err,
        UUID subjId,
        String taskName
    ) {
        assert putMap == null ^ rmvKeys == null;
        GridCacheOperation op;

        try {
            if (putMap != null) {
                ctx.store().putAllToStore(null, F.viewReadOnly(putMap, new C1<V, GridBiTuple<V, GridCacheVersion>>() {
                    @Override public GridBiTuple<V, GridCacheVersion> apply(V v) {
View Full Code Here

Examples of org.gridgain.grid.kernal.processors.cache.GridCacheOperation

                                        txEntry.cached().unswap(true, false);

                                    GridTuple3<GridCacheOperation, V, byte[]> res = applyTransformClosures(txEntry,
                                        false);

                                    GridCacheOperation op = res.get1();
                                    V val = res.get2();
                                    byte[] valBytes = res.get3();

                                    // Preserve TTL if needed.
                                    if (txEntry.ttl() < 0)
View Full Code Here

Examples of org.gridgain.grid.kernal.processors.cache.GridCacheOperation

                long topVer = ctx.affinity().affinityTopologyVersion();

                try {
                    entry = entryEx(key, topVer);

                    GridCacheOperation op = (val != null || valBytes != null) ? UPDATE : DELETE;

                    GridCacheUpdateAtomicResult<K, V> updRes = entry.innerUpdate(
                        ver,
                        nodeId,
                        nodeId,
View Full Code Here

Examples of org.gridgain.grid.kernal.processors.cache.GridCacheOperation

                        V val = req.nearValue(i);
                        byte[] valBytes = req.nearValueBytes(i);
                        GridClosure<V, V> transform = req.nearTransformClosure(i);

                        GridCacheOperation op = transform != null ? TRANSFORM :
                            (val != null || valBytes != null) ?
                                UPDATE :
                                DELETE;

                        GridCacheUpdateAtomicResult<K, V> updRes = entry.innerUpdate(
View Full Code Here

Examples of org.gridgain.grid.kernal.processors.cache.GridCacheOperation

                            if (intercept || !F.isEmpty(e.transformClosures()))
                                e.cached().unswap(true, false);

                            GridTuple3<GridCacheOperation, V, byte[]> res = applyTransformClosures(e, false);

                            GridCacheOperation op = res.get1();
                            K key = e.key();
                            V val = res.get2();
                            GridCacheVersion ver = writeVersion();

                            if (op == CREATE || op == UPDATE) {
View Full Code Here

Examples of org.gridgain.grid.kernal.processors.cache.GridCacheOperation

                                        txEntry.cached().unswap(true, false);

                                    GridTuple3<GridCacheOperation, V, byte[]> res = applyTransformClosures(txEntry,
                                        true);

                                    GridCacheOperation op = res.get1();
                                    V val = res.get2();
                                    byte[] valBytes = res.get3();

                                    // Preserve TTL if needed.
                                    if (txEntry.ttl() < 0)
View Full Code Here

Examples of org.gridgain.grid.kernal.processors.cache.GridCacheOperation

        Map<K, V> putMap = null;
        Map<K, GridClosure<V, V>> transformMap = null;
        Collection<K> rmvKeys = null;
        UpdateBatchResult<K, V> updRes = new UpdateBatchResult<>();
        List<GridDhtCacheEntry<K, V>> filtered = new ArrayList<>(size);
        GridCacheOperation op = req.operation();

        int firstEntryIdx = 0;

        boolean intercept = ctx.config().getInterceptor() != null;
View Full Code Here

Examples of org.gridgain.grid.kernal.processors.cache.GridCacheOperation

        // Avoid iterator creation.
        for (int i = 0; i < keys.size(); i++) {
            K k = keys.get(i);

            GridCacheOperation op = req.operation();

            // We are holding java-level locks on entries at this point.
            // No GridCacheEntryRemovedException can be thrown.
            try {
                GridDhtCacheEntry<K, V> entry = locked.get(i);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.