Class MemoryConfigParser
java.lang.Object
org.apache.drill.exec.resourcemgr.util.MemoryConfigParser
Utility class which helps in parsing memory configuration string using the passed in pattern to get memory value in
bytes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
parseMemoryConfigString
(String memoryConfig, String patternToUse)
-
Constructor Details
-
MemoryConfigParser
public MemoryConfigParser()
-
-
Method Details
-
parseMemoryConfigString
- Parameters:
memoryConfig
- Memory configuration stringpatternToUse
- Pattern which will be used to parse the memory configuration string- Returns:
- memory value in bytes
-