Class MemoryConfigParser

java.lang.Object
org.apache.drill.exec.resourcemgr.util.MemoryConfigParser

public class MemoryConfigParser extends Object
Utility class which helps in parsing memory configuration string using the passed in pattern to get memory value in bytes.
  • Constructor Details

    • MemoryConfigParser

      public MemoryConfigParser()
  • Method Details

    • parseMemoryConfigString

      public static long parseMemoryConfigString(String memoryConfig, String patternToUse)
      Parameters:
      memoryConfig - Memory configuration string
      patternToUse - Pattern which will be used to parse the memory configuration string
      Returns:
      memory value in bytes