Package com.foundationdb.sql.optimizer.plan.ExpressionsSource

Examples of com.foundationdb.sql.optimizer.plan.ExpressionsSource.DistinctState


                ExpressionsSource expressionsSource = (ExpressionsSource)input;
                // If the source was VALUES, see if it's distinct. If so,
                // we can possibly reverse the join and benefit from an
                // index.
                JoinType semiType = JoinType.SEMI;
                DistinctState distinct = expressionsSource.getDistinctState();
                switch (distinct) {
                case DISTINCT:
                case DISTINCT_WITH_NULL:
                    semiType = JoinType.SEMI_INNER_ALREADY_DISTINCT;
                    break;
View Full Code Here


                rows.addAll(parameters);
            if (others != null)
                rows.addAll(others);

            if (setDistinct) {
                DistinctState distinct;
                if (others != null)
                    distinct = DistinctState.HAS_EXPRESSSIONS;
                else if (parameters != null)
                    distinct = DistinctState.HAS_PARAMETERS;
                else if (anyNull)
View Full Code Here

TOP

Related Classes of com.foundationdb.sql.optimizer.plan.ExpressionsSource.DistinctState

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.