tkalkirill commented on a change in pull request #602:
URL: https://github.com/apache/ignite-3/pull/602#discussion_r798494581
##########
File path:
modules/page-memory/src/main/java/org/apache/ignite/internal/pagememory/io/PageIo.java
##########
@@ -54,86 +55,75 @@
* </ol>
*/
public abstract class PageIo {
- /**
- * Maximum value for page type.
- */
+ /** Maximum value for page type. */
public static final int MAX_IO_TYPE = 65535 - 1;
- /**
- * Offset for "short" page type.
- */
+ /** Offset for "short" page type. */
public static final int TYPE_OFF = 0;
- /**
- * Offset for "short" page version.
- */
+ /** Offset for "short" page version. */
public static final int VER_OFF = TYPE_OFF + Short.BYTES;
- /**
- * Offset for "int" CRC.
- */
+ /** Offset for "int" CRC. */
public static final int CRC_OFF = VER_OFF + Short.BYTES;
- /**
- * Offset for "long" page ID.
- */
+ /** Offset for "long" page ID. */
public static final int PAGE_ID_OFF = CRC_OFF + Integer.BYTES;
- /**
- * Offset for "byte" rotated ID.
- */
+ /** Offset for "byte" rotated ID. */
public static final int ROTATED_ID_PART_OFF = PAGE_ID_OFF + Long.BYTES;
- /**
- * Offset for "byte" compression type.
- */
+ /** Offset for "byte" compression type. */
private static final int COMPRESSION_TYPE_OFF = ROTATED_ID_PART_OFF +
Byte.BYTES;
- /**
- * Offset for "short" compressed size.
- */
+ /** Offset for "short" compressed size. */
private static final int COMPRESSED_SIZE_OFF = COMPRESSION_TYPE_OFF +
Byte.BYTES;
- /**
- * Offset for "short" compacted size.
- */
+ /** Offset for "short" compacted size. */
private static final int COMPACTED_SIZE_OFF = COMPRESSED_SIZE_OFF +
Short.BYTES;
- /**
- * Offset for reserved "short" value.
- */
+ /** Offset for reserved "short" value. */
private static final int RESERVED_SHORT_OFF = COMPACTED_SIZE_OFF +
Short.BYTES;
- /**
- * Offset for reserved "long" value.
- */
+ /** Offset for reserved "long" value. */
private static final int RESERVED_2_OFF = RESERVED_SHORT_OFF + Short.BYTES;
- /**
- * Offset for reserved "long" value.
- */
+ /** Offset for reserved "long" value. */
private static final int RESERVED_3_OFF = RESERVED_2_OFF + Long.BYTES;
- /**
- * Total size of common header, including reserved bytes.
- */
+ /** Total size of common header, including reserved bytes. */
public static final int COMMON_HEADER_END = RESERVED_3_OFF + Long.BYTES;
- /**
- * IO version.
- */
+ /* All the page types. */
+
+ /** Data page type. */
+ public static final short T_DATA = 1;
+
+ /** Meta page type. */
+ public static final short T_META = 11;
+
+ /** Type page list meta. */
+ public static final short T_PAGE_LIST_META = 12;
+
+ /** Type page list node. */
+ public static final short T_PAGE_LIST_NODE = 13;
+
+ /** Simple (just byte array) data page type. */
+ public static final short T_DATA_PART = 32;
Review comment:
Removed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]