Package one.microstream.memory
Interface MemorySizeProperties
- All Known Implementing Classes:
JdkMemoryAccessor
,MemorySizeProperties.Unsupported
public interface MemorySizeProperties
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MemorySizeProperties.Unsupported
Default implementation that returns-1
for every method. -
Method Summary
Modifier and Type Method Description long
byteSizeArray_boolean(long elementCount)
long
byteSizeArray_byte(long elementCount)
long
byteSizeArray_char(long elementCount)
long
byteSizeArray_double(long elementCount)
long
byteSizeArray_float(long elementCount)
long
byteSizeArray_int(long elementCount)
long
byteSizeArray_long(long elementCount)
long
byteSizeArray_short(long elementCount)
long
byteSizeArrayObject(long elementCount)
int
byteSizeFieldValue(Class<?> type)
default int
byteSizeFieldValue(Field field)
int
byteSizeInstance(Class<?> type)
int
byteSizeObjectHeader(Class<?> type)
int
byteSizeReference()
int
pageSize()
Returns the system's memory "page size" (whatever that may be exactely for a given system).static MemorySizeProperties
Unsupported()
-
Method Details
-
pageSize
int pageSize()Returns the system's memory "page size" (whatever that may be exactely for a given system). Use with care (and the dependency to a system value in mind!).- Returns:
- the system's memory "page size".
-
byteSizeReference
int byteSizeReference() -
byteSizeInstance
-
byteSizeObjectHeader
-
byteSizeFieldValue
-
byteSizeFieldValue
-
byteSizeArray_byte
long byteSizeArray_byte(long elementCount) -
byteSizeArray_boolean
long byteSizeArray_boolean(long elementCount) -
byteSizeArray_short
long byteSizeArray_short(long elementCount) -
byteSizeArray_char
long byteSizeArray_char(long elementCount) -
byteSizeArray_int
long byteSizeArray_int(long elementCount) -
byteSizeArray_float
long byteSizeArray_float(long elementCount) -
byteSizeArray_long
long byteSizeArray_long(long elementCount) -
byteSizeArray_double
long byteSizeArray_double(long elementCount) -
byteSizeArrayObject
long byteSizeArrayObject(long elementCount) -
Unsupported
-