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 {@value -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 Detail
-
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
int byteSizeInstance(Class<?> type)
-
byteSizeObjectHeader
int byteSizeObjectHeader(Class<?> type)
-
byteSizeFieldValue
default int byteSizeFieldValue(Field field)
-
byteSizeFieldValue
int byteSizeFieldValue(Class<?> type)
-
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
static MemorySizeProperties Unsupported()
-
-