Package r.data

Examples of r.data.RAny$Attributes$PartialEntry


                Selector columnSel = selectorExprs[lastSel].executeSelector(frame);
                while (true) {
                    try {
                        return update((RArray) lhs, (RArray) rhs, columnSel);
                    } catch (SpecializationException e) {
                        RAny index = columnSel.getIndex();
                        SelectorNode newSelector = Selector.createSelectorNode(ast, subset, index, selectorExprs[lastSel].child, false, columnSel.getTransition());
                        selectorExprs[lastSel].replace(newSelector);
                        assert Utils.check(selectorExprs[lastSel] == newSelector);
                        columnSel = newSelector.executeSelector(index);
                        if (DEBUG_UP) Utils.debug("Column selector changed...");
View Full Code Here


        protected IntToIntDirect(UpdateArray other) {
            super(other);
        }

        @Override public RAny execute(Frame frame, RAny lhsParam, RAny rhs) {
            RAny lhs;
            try {
                if (!(lhsParam instanceof IntImpl) || !(rhs instanceof IntImpl) || lhsParam.isShared()) { throw new SpecializationException(null); }
                if (!Configuration.ARRAY_UPDATE_DO_NOT_COPY_LHS_WHEN_NO_ALIAS_IN_DIRECT_SPECIALIZATIONS || (lhsParam == rhs)) {
                    lhs = ValueCopy.INT_TO_INT_DIRECT.copy(lhsParam);
                } else {
View Full Code Here

            super(other);
        }

        @Override public RAny execute(Frame frame, RAny lhsParam, RAny rhs) {
            try {
                RAny lhs;
                if (!(lhsParam instanceof DoubleImpl) || !(rhs instanceof IntImpl) || lhsParam.isShared()) { throw new SpecializationException(null); }
                if (!Configuration.ARRAY_UPDATE_DO_NOT_COPY_LHS_WHEN_NO_ALIAS_IN_DIRECT_SPECIALIZATIONS) {
                    lhs = ValueCopy.DOUBLE_TO_DOUBLE_DIRECT.copy(lhs);
                } else {
                    lhs = lhsParam;
View Full Code Here

            super(other);
        }

        @Override public RAny execute(Frame frame, RAny lhsParam, RAny rhs) {
            try {
                RAny lhs;
                if (!(lhsParam instanceof DoubleImpl) || !(rhs instanceof DoubleImpl) || lhsParam.isShared()) { throw new SpecializationException(null); }
                if (!Configuration.ARRAY_UPDATE_DO_NOT_COPY_LHS_WHEN_NO_ALIAS_IN_DIRECT_SPECIALIZATIONS || (lhsParam == rhs)) {
                    lhs = ValueCopy.DOUBLE_TO_DOUBLE_DIRECT.copy(lhsParam);
                } else {
                    lhs = lhsParam;
View Full Code Here

            super(other);
        }

        @Override public RAny execute(Frame frame, RAny lhsParam, RAny rhs) {
            try {
                RAny lhs;
                if (!(lhsParam instanceof ComplexImpl) || !(rhs instanceof IntImpl) || lhsParam.isShared()) { throw new SpecializationException(null); }
                if (!Configuration.ARRAY_UPDATE_DO_NOT_COPY_LHS_WHEN_NO_ALIAS_IN_DIRECT_SPECIALIZATIONS) {
                    lhs = ValueCopy.COMPLEX_TO_COMPLEX_DIRECT.copy(lhs);
                } else {
                    lhs = lhsParam;
View Full Code Here

            super(other);
        }

        @Override public RAny execute(Frame frame, RAny lhsParam, RAny rhs) {
            try {
                RAny lhs;
                if (!(lhsParam instanceof ComplexImpl) || !(rhs instanceof DoubleImpl) || lhsParam.isShared()) { throw new SpecializationException(null); }
                if (!Configuration.ARRAY_UPDATE_DO_NOT_COPY_LHS_WHEN_NO_ALIAS_IN_DIRECT_SPECIALIZATIONS) {
                    lhs = ValueCopy.COMPLEX_TO_COMPLEX_DIRECT.copy(lhs);
                } else {
                    lhs = lhsParam;
View Full Code Here

            super(other);
        }

        @Override public RAny execute(Frame frame, RAny lhsParam, RAny rhs) {
            try {
                RAny lhs;
                if (!(lhsParam instanceof ComplexImpl) || !(rhs instanceof ComplexImpl) || lhsParam.isShared()) { throw new SpecializationException(null); }
                if (!Configuration.ARRAY_UPDATE_DO_NOT_COPY_LHS_WHEN_NO_ALIAS_IN_DIRECT_SPECIALIZATIONS || (lhsParam == rhs)) {
                    lhs = ValueCopy.COMPLEX_TO_COMPLEX_DIRECT.copy(lhsParam);
                } else {
                    lhs = lhsParam;
View Full Code Here

            this.index = index;
        }

        @Override public Object execute(Frame frame) {
            assert Utils.check(getNewNode() == null);
            RAny base = (RAny) lhs.execute(frame);
            if (getNewNode() != null) {
                return ((ReadVector.SimpleConstantScalarIntSelection)getNewNode()).executeWithBase(frame, base);
            }
            return executeWithBase(frame, base);
        }
View Full Code Here

            this.c = c;
        }

        @Override public Object execute(Frame frame) {
            assert Utils.check(getNewNode() == null);
            RAny base = (RAny) lhs.execute(frame); // note: order is important
            if (getNewNode() != null) {
                return ((ReadVector.LogicalEqualitySelection) getNewNode()).executeWithBase(frame, base);
            }
            return executeWithBase(frame,base);
        }
View Full Code Here

            }
            return executeWithBase(frame,base);
        }

        public Object executeWithBase(Frame frame, RAny base) {
            RAny x = (RAny) xExpr.execute(frame);
            if (getNewNode() != null) {
                return ((ReadVector.LogicalEqualitySelection) getNewNode()).executeWithBase(frame, base);
            }
            return execute(base, x);
        }
View Full Code Here

TOP

Related Classes of r.data.RAny$Attributes$PartialEntry

Copyright © 2018 www.massapicom. 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.