ByteBuffer emptyStartRow = ByteBuffer.wrap(HConstants.EMPTY_START_ROW);
ArrayList<byte []> startKeysList = new ArrayList<byte []>();
for (int i = 0; i < startKeys.length; i++) {
ByteBuffer curStartKey = ByteBuffer.wrap(startKeys[i]);
ByteBuffer curEndKey = ByteBuffer.wrap(((i + 1) < startKeys.length) ? startKeys[i + 1]: HConstants.EMPTY_START_ROW);
if (startRow != null && curEndKey.compareTo(startRow) < 0 && curEndKey.compareTo(emptyStartRow) != 0) {
LOG.info("Skipping split (< start)...");
continue;
}
if (stopRow != null && curStartKey.compareTo(stopRow) > 0) {
LOG.info("Skipping split (> stop)...");