Package org.postgresql.util
Class PGPropertyMaxResultBufferParser
- java.lang.Object
-
- org.postgresql.util.PGPropertyMaxResultBufferParser
-
public class PGPropertyMaxResultBufferParser extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PGPropertyMaxResultBufferParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
parseProperty(java.lang.String value)
Method to parse value of max result buffer size.
-
-
-
Method Detail
-
parseProperty
public static long parseProperty(java.lang.String value) throws PSQLException
Method to parse value of max result buffer size.- Parameters:
value
- string containing size of bytes with optional multiplier (T, G, M or K) or percent value to declare max percent of heap memory to use.- Returns:
- value of max result buffer size.
- Throws:
PSQLException
- Exception when given value can't be parsed.
-
-