pyflink.datastream.slot_sharing_group.MemorySize#
- class MemorySize(j_memory_size=None, bytes_size: Optional[int] = None)[source]#
MemorySize is a representation of a number of bytes, viewable in different units.
Methods
get_bytes
()Gets the memory size in bytes.
get_gibi_bytes
()Gets the memory size in Gibibytes (= 1024 Mebibytes).
get_java_memory_size
()Gets the Java MemorySize object.
get_kibi_bytes
()Gets the memory size in Kibibytes (= 1024 bytes).
get_mebi_bytes
()Gets the memory size in Mebibytes (= 1024 Kibibytes).
get_tebi_bytes
()Gets the memory size in Tebibytes (= 1024 Gibibytes).
of_mebi_bytes
(mebi_bytes)