Examples of SortDirectionType


Examples of com.oltpbenchmark.types.SortDirectionType

                String idx_name = idx_rs.getString(6);
                int idx_type = idx_rs.getShort(7);
                int idx_col_pos = idx_rs.getInt(8) - 1;
                String idx_col_name = idx_rs.getString(9);
                String sort = idx_rs.getString(10);
                SortDirectionType idx_direction;
                if (sort != null) {
                    idx_direction = sort.equalsIgnoreCase("A") ? SortDirectionType.ASC : SortDirectionType.DESC;
                } else
                    idx_direction = null;
View Full Code Here

Examples of org.voltdb.types.SortDirectionType

        int cmp = 0;
        int sort_idx = 0;
        for (Pair<Integer, SortDirectionType> p : this.cols) {
            int col_idx = p.getFirst();
            assert (col_idx < o1.length);
            SortDirectionType dir = p.getSecond();
            assert (dir != SortDirectionType.INVALID);

            switch (this.types[sort_idx]) {
                case TINYINT:
                    cmp = ((Byte) o1[col_idx]) - ((Byte) o2[col_idx]);
View Full Code Here

Examples of org.voltdb.types.SortDirectionType

        assert(plan.getChildCount() == 1);
        AggregatePlanNode aggplan = (AggregatePlanNode)plan;

        // handle one single min() / max() now
        // TODO: combination of [min(), max(), count()]
        SortDirectionType sortDirection = SortDirectionType.INVALID;

        if (aggplan.isTableMin()) {
            sortDirection = SortDirectionType.ASC;
        } else if (aggplan.isTableMax()) {
            sortDirection = SortDirectionType.DESC;
View Full Code Here

Examples of org.voltdb.types.SortDirectionType

        // Only sort when the statement has an ORDER BY.
        if ( ! m_parsedSelect.hasOrderByColumns()) {
            return root;
        }

        SortDirectionType sortDirection = SortDirectionType.INVALID;

        // Skip the explicit ORDER BY plan step if an IndexScan is already providing the equivalent ordering.
        // Note that even tree index scans that produce values in their own "key order" only report
        // their sort direction != SortDirectionType.INVALID
        // when they enforce an ordering equivalent to the one requested in the ORDER BY clause.
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.