automation/src/main/java/org/greenplum/pxf/automation/testplugin/HBaseAccessorWithFilter.java [185:196]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private boolean withinScanRange(byte[] startKey, byte[] endKey) {
        // startKey <= scanStartKey
        if (Bytes.compareTo(startKey, scanStartKey) <= 0) {
            // endKey >= scanStartKey
            return Bytes.equals(endKey, HConstants.EMPTY_END_ROW) || // endKey == table's end
                    Bytes.compareTo(endKey, scanStartKey) >= 0;
        } else { // startKey > scanStartKey
            // startKey <= scanEndKey
            return Bytes.equals(scanEndKey, HConstants.EMPTY_END_ROW) || //  scanEndKey == table's end
                    Bytes.compareTo(startKey, scanEndKey) <= 0;
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



server/pxf-hbase/src/main/java/org/greenplum/pxf/plugins/hbase/HBaseAccessor.java [234:246]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private boolean withinScanRange(byte[] startKey, byte[] endKey) {

        // startKey <= scanStartKey
        if (Bytes.compareTo(startKey, scanStartKey) <= 0) {
            // endKey == table's end or endKey >= scanStartKey
            return Bytes.equals(endKey, HConstants.EMPTY_END_ROW) ||
                    Bytes.compareTo(endKey, scanStartKey) >= 0;
        } else { // startKey > scanStartKey
            // scanEndKey == table's end or startKey <= scanEndKey
            return Bytes.equals(scanEndKey, HConstants.EMPTY_END_ROW) ||
                    Bytes.compareTo(startKey, scanEndKey) <= 0;
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



