Class CASWALPage
java.lang.Object
com.orientechnologies.orient.core.storage.impl.local.paginated.wal.common.CASWALPage
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intOffset of position which stores operation id of the last record in the pagestatic final longstatic final intOffset of magic number value.static final longstatic final intstatic final intstatic final intOffset of position which stores XX_HASH value of content stored on this page. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcalculateSerializedSize(int recordSize) Calculates how much space record will consume once it will be stored inside of page.
-
Field Details
-
MAGIC_NUMBER
public static final long MAGIC_NUMBER- See Also:
-
MAGIC_NUMBER_WITH_ENCRYPTION
public static final long MAGIC_NUMBER_WITH_ENCRYPTION- See Also:
-
MAGIC_NUMBER_OFFSET
public static final int MAGIC_NUMBER_OFFSETOffset of magic number value. Randomly generated constant which is used to identify whether page is broken on disk and version of binary format is used to store page.- See Also:
-
XX_OFFSET
public static final int XX_OFFSETOffset of position which stores XX_HASH value of content stored on this page.- See Also:
-
LAST_OPERATION_ID_OFFSET
public static final int LAST_OPERATION_ID_OFFSETOffset of position which stores operation id of the last record in the page- See Also:
-
PAGE_SIZE_OFFSET
public static final int PAGE_SIZE_OFFSET- See Also:
-
DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_SIZE- See Also:
-
RECORDS_OFFSET
public static final int RECORDS_OFFSET- See Also:
-
DEFAULT_MAX_RECORD_SIZE
public static final int DEFAULT_MAX_RECORD_SIZE- See Also:
-
-
Constructor Details
-
CASWALPage
public CASWALPage()
-
-
Method Details
-
calculateSerializedSize
public static int calculateSerializedSize(int recordSize) Calculates how much space record will consume once it will be stored inside of page. Sizes are different because once record is stored inside of the page, it is wrapped by additional system information.
-