private void sanityCheck(Cell cell) throws IOException { if (this.getLastCell() != null) { if (comparator.compare(cell, this.getLastCell()) <= 0) { throw new IOException("Added a key not lexically larger than" + " previous. Current cell = " + cell + ", prevCell = " + this.getLastCell()); } } }