static byte[] checkRow(final byte[] row, final int offset, final int length) {
    if (row == null) {
      throw new IllegalArgumentException("Row buffer is null");
    }
    if (length == 0) {
      throw new IllegalArgumentException("Row length is 0");
    }
    if (length > HConstants.MAX_ROW_LENGTH) {
      throw new IllegalArgumentException(
        "Row length " + length + " is > " + HConstants.MAX_ROW_LENGTH);
    }
    return row;
  }
@param row Row to check
@throws IllegalArgumentException Thrown if <code>row</code> is empty or null or &gt;
                                 {@link HConstants#MAX_ROW_LENGTH}
@return <code>row</code>
hbase-client/src/main/java/org/apache/hadoop/hbase/client/Mutation.java