Go to the documentation of this file. 26 #ifndef _OBJECT_REPRESENTATION_CONSTANTS_H_ 27 #define _OBJECT_REPRESENTATION_CONSTANTS_H_ 41 #define OR_BYTE_SIZE 1 42 #define OR_SHORT_SIZE 2 44 #define OR_BIGINT_SIZE 8 45 #define OR_FLOAT_SIZE 4 46 #define OR_DOUBLE_SIZE 8 48 #define OR_BIGINT_ALIGNED_SIZE (OR_BIGINT_SIZE + MAX_ALIGNMENT) 49 #define OR_DOUBLE_ALIGNED_SIZE (OR_DOUBLE_SIZE + MAX_ALIGNMENT) 50 #define OR_PTR_ALIGNED_SIZE (OR_PTR_SIZE + MAX_ALIGNMENT) 61 #define OR_OID_PAGEID 0 62 #define OR_OID_SLOTID 4 63 #define OR_OID_VOLID 6 65 #define OR_VPID_SIZE 6 66 #define OR_VPID_PAGEID 0 67 #define OR_VPID_VOLID 4 69 #define OR_HFID_SIZE 12 70 #define OR_HFID_PAGEID 0 71 #define OR_HFID_VFID_FILEID 4 72 #define OR_HFID_VFID_VOLID 8 74 #define OR_BTID_SIZE 10 75 #define OR_BTID_ALIGNED_SIZE (OR_BTID_SIZE + OR_SHORT_SIZE) 76 #define OR_BTID_PAGEID 0 77 #define OR_BTID_VFID_FILEID 4 78 #define OR_BTID_VFID_VOLID 8 80 #define OR_EHID_SIZE 12 81 #define OR_EHID_VOLID 0 82 #define OR_EHID_FILEID 4 83 #define OR_EHID_PAGEID 8 85 #define OR_LOG_LSA_SIZE 10 86 #define OR_LOG_LSA_ALIGNED_SIZE (OR_LOG_LSA_SIZE + OR_SHORT_SIZE) 87 #define OR_LOG_LSA_PAGEID 0 88 #define OR_LOG_LSA_OFFSET 8 96 #define OR_TIME_SIZE 4 97 #define OR_UTIME_SIZE 4 98 #define OR_DATE_SIZE 4 100 #define OR_TIMETZ_SIZE (OR_TIME_SIZE + sizeof (TZ_ID)) 101 #define OR_TIMETZ_TZID 4 103 #define OR_DATETIME_SIZE 8 104 #define OR_DATETIME_DATE 0 105 #define OR_DATETIME_TIME 4 107 #define OR_TIMESTAMPTZ_SIZE (OR_UTIME_SIZE + sizeof (TZ_ID)) 108 #define OR_TIMESTAMPTZ_TZID 4 110 #define OR_DATETIMETZ_SIZE (OR_DATETIME_SIZE + sizeof (TZ_ID)) 111 #define OR_DATETIMETZ_TZID 8 113 #define OR_MONETARY_SIZE 12 114 #define OR_MONETARY_TYPE 0 115 #define OR_MONETARY_AMOUNT 4 116 #define OR_ELO_LENGTH_SIZE 4 117 #define OR_ELO_HEADER_SIZE (OR_ELO_LENGTH_SIZE) 119 #define OR_SHA1_SIZE (5 * OR_INT_SIZE) 122 #define OR_MAX_BYTE 127 123 #define OR_MIN_BYTE -128 125 #define OR_MAX_SHORT_UNSIGNED 65535 126 #define OR_MAX_SHORT 32767 127 #define OR_MIN_SHORT -32768 129 #define OR_MAX_INT 2147483647 130 #define OR_MIN_INT -2147483648 134 #define OR_MVCC_MAX_HEADER_SIZE 32 137 #define OR_MVCC_MIN_HEADER_SIZE 8 140 #define OR_MVCC_INSERT_HEADER_SIZE 16 142 #define OR_NON_MVCC_HEADER_SIZE (8) 145 #define OR_OFFSET_SIZE_FLAG 0x60000000 146 #define OR_OFFSET_SIZE_1BYTE 0x20000000 147 #define OR_OFFSET_SIZE_2BYTE 0x40000000 148 #define OR_OFFSET_SIZE_4BYTE 0x60000000 152 #define OR_MVCC_FLAG_MASK 0x1f 153 #define OR_MVCC_FLAG_SHIFT_BITS 24 157 #define OR_MVCC_FLAG_VALID_INSID 0x01 160 #define OR_MVCC_FLAG_VALID_DELID 0x02 163 #define OR_MVCC_FLAG_VALID_PREV_VERSION 0x04 165 #define OR_MVCC_REPID_MASK 0x00FFFFFF