static void checkRow(ByteBuffer row) {
    if (row == null) {
      throw new IllegalArgumentException("Row buffer is null");
    }
    if (row.remaining() == 0) {
      throw new IllegalArgumentException("Row length is 0");
    }
    if (row.remaining() > HConstants.MAX_ROW_LENGTH) {
      throw new IllegalArgumentException(
        "Row length " + row.remaining() + " is > " + HConstants.MAX_ROW_LENGTH);
    }
  }
@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