Package com.foundationdb.qp.row

Examples of com.foundationdb.qp.row.IndexRow.compareTo()


    protected boolean beforeStart(Row row)
    {
        boolean beforeStart = false;
        if (startKey != null && row != null && startBoundColumns != 0) {
            IndexRow current = (IndexRow) row;
            int c = current.compareTo(startKey, startBoundColumns) * direction;
            beforeStart = c < 0 || c == 0 && !startInclusive;
        }
        return beforeStart;
    }

View Full Code Here


        boolean pastEnd;
        if (endKey == null || endBoundColumns == 0) {
            pastEnd = false;
        } else {
            IndexRow current = (IndexRow) row;
            int c = current.compareTo(endKey, endBoundColumns) * direction;
            pastEnd = c > 0 || c == 0 && !endInclusive;
        }
        return pastEnd;
    }

View Full Code Here

        boolean beforeStart;
        if (startKey == null || row == null || startUnbounded()) {
            beforeStart = false;
        } else {
            IndexRow current = (IndexRow) row;
            int c = current.compareTo(startKey, startBoundColumns, ascending);
            beforeStart = c < 0 || c == 0 && !startInclusive;
        }
        return beforeStart;
    }
View Full Code Here

        boolean pastEnd;
        if (endKey == null || endUnbounded()) {
            pastEnd = false;
        } else {
            IndexRow current = (IndexRow) row;
            int c = current.compareTo(endKey, endBoundColumns, ascending);
            pastEnd = c > 0 || c == 0 && !endInclusive;
        }
        return pastEnd;
    }
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.