Package one.microstream.memory
Class MemorySizeProperties.Unsupported
java.lang.Object
one.microstream.memory.MemorySizeProperties.Unsupported
- All Implemented Interfaces:
MemorySizeProperties
- Enclosing interface:
- MemorySizeProperties
public static final class MemorySizeProperties.Unsupported extends Object implements MemorySizeProperties
Default implementation that returns {@value -1} for every method.
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.memory.MemorySizeProperties
MemorySizeProperties.Unsupported
-
Constructor Summary
Constructors Constructor Description Unsupported()
-
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)
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).
-
Constructor Details
-
Unsupported
public Unsupported()
-
-
Method Details
-
pageSize
public final int pageSize()Description copied from interface:MemorySizeProperties
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!).- Specified by:
pageSize
in interfaceMemorySizeProperties
- Returns:
- the system's memory "page size".
-
byteSizeReference
public final int byteSizeReference()- Specified by:
byteSizeReference
in interfaceMemorySizeProperties
-
byteSizeInstance
- Specified by:
byteSizeInstance
in interfaceMemorySizeProperties
-
byteSizeObjectHeader
- Specified by:
byteSizeObjectHeader
in interfaceMemorySizeProperties
-
byteSizeFieldValue
- Specified by:
byteSizeFieldValue
in interfaceMemorySizeProperties
-
byteSizeArray_byte
public final long byteSizeArray_byte(long elementCount)- Specified by:
byteSizeArray_byte
in interfaceMemorySizeProperties
-
byteSizeArray_boolean
public final long byteSizeArray_boolean(long elementCount)- Specified by:
byteSizeArray_boolean
in interfaceMemorySizeProperties
-
byteSizeArray_short
public final long byteSizeArray_short(long elementCount)- Specified by:
byteSizeArray_short
in interfaceMemorySizeProperties
-
byteSizeArray_char
public final long byteSizeArray_char(long elementCount)- Specified by:
byteSizeArray_char
in interfaceMemorySizeProperties
-
byteSizeArray_int
public final long byteSizeArray_int(long elementCount)- Specified by:
byteSizeArray_int
in interfaceMemorySizeProperties
-
byteSizeArray_float
public final long byteSizeArray_float(long elementCount)- Specified by:
byteSizeArray_float
in interfaceMemorySizeProperties
-
byteSizeArray_long
public final long byteSizeArray_long(long elementCount)- Specified by:
byteSizeArray_long
in interfaceMemorySizeProperties
-
byteSizeArray_double
public final long byteSizeArray_double(long elementCount)- Specified by:
byteSizeArray_double
in interfaceMemorySizeProperties
-
byteSizeArrayObject
public final long byteSizeArrayObject(long elementCount)- Specified by:
byteSizeArrayObject
in interfaceMemorySizeProperties
-