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 longbyteSizeArray_boolean(long elementCount)longbyteSizeArray_byte(long elementCount)longbyteSizeArray_char(long elementCount)longbyteSizeArray_double(long elementCount)longbyteSizeArray_float(long elementCount)longbyteSizeArray_int(long elementCount)longbyteSizeArray_long(long elementCount)longbyteSizeArray_short(long elementCount)longbyteSizeArrayObject(long elementCount)intbyteSizeFieldValue(Class<?> type)intbyteSizeInstance(Class<?> type)intbyteSizeObjectHeader(Class<?> type)intbyteSizeReference()intpageSize()Returns the system's memory "page size" (whatever that may be exactely for a given system).- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface one.microstream.memory.MemorySizeProperties
byteSizeFieldValue 
 - 
 
 - 
 
- 
- 
Method Detail
- 
pageSize
public final int pageSize()
Description copied from interface:MemorySizePropertiesReturns 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:
 pageSizein interfaceMemorySizeProperties- Returns:
 - the system's memory "page size".
 
 
- 
byteSizeReference
public final int byteSizeReference()
- Specified by:
 byteSizeReferencein interfaceMemorySizeProperties
 
- 
byteSizeInstance
public final int byteSizeInstance(Class<?> type)
- Specified by:
 byteSizeInstancein interfaceMemorySizeProperties
 
- 
byteSizeObjectHeader
public final int byteSizeObjectHeader(Class<?> type)
- Specified by:
 byteSizeObjectHeaderin interfaceMemorySizeProperties
 
- 
byteSizeFieldValue
public final int byteSizeFieldValue(Class<?> type)
- Specified by:
 byteSizeFieldValuein interfaceMemorySizeProperties
 
- 
byteSizeArray_byte
public final long byteSizeArray_byte(long elementCount)
- Specified by:
 byteSizeArray_bytein interfaceMemorySizeProperties
 
- 
byteSizeArray_boolean
public final long byteSizeArray_boolean(long elementCount)
- Specified by:
 byteSizeArray_booleanin interfaceMemorySizeProperties
 
- 
byteSizeArray_short
public final long byteSizeArray_short(long elementCount)
- Specified by:
 byteSizeArray_shortin interfaceMemorySizeProperties
 
- 
byteSizeArray_char
public final long byteSizeArray_char(long elementCount)
- Specified by:
 byteSizeArray_charin interfaceMemorySizeProperties
 
- 
byteSizeArray_int
public final long byteSizeArray_int(long elementCount)
- Specified by:
 byteSizeArray_intin interfaceMemorySizeProperties
 
- 
byteSizeArray_float
public final long byteSizeArray_float(long elementCount)
- Specified by:
 byteSizeArray_floatin interfaceMemorySizeProperties
 
- 
byteSizeArray_long
public final long byteSizeArray_long(long elementCount)
- Specified by:
 byteSizeArray_longin interfaceMemorySizeProperties
 
- 
byteSizeArray_double
public final long byteSizeArray_double(long elementCount)
- Specified by:
 byteSizeArray_doublein interfaceMemorySizeProperties
 
- 
byteSizeArrayObject
public final long byteSizeArrayObject(long elementCount)
- Specified by:
 byteSizeArrayObjectin interfaceMemorySizeProperties
 
 - 
 
 -