public static MemorySize parse(String text) throws IllegalArgumentException {
    return new MemorySize(parseBytes(text));
  }
Parses the given string as as MemorySize.

@param text The string to parse
@return The parsed MemorySize
@throws IllegalArgumentException Thrown, if the expression cannot be parsed.
amoro-common/src/main/java/org/apache/amoro/utils/MemorySize.java