Stored Field Header Format
The field header is broken into two sections.
Only the Status byte is required to be there.
Field header format: +--------+-------------------+ | status || +--------+-------------------+ Overflow page and overflow id are stored as field data. If the overflow bit in status is set, the field data is the overflow information. When the overflow bit is not set in status, then, fieldData is the actually user data for the field. That means, field header consists only field status, and field data length. A non-overflow field: +--------+-------------------+-------------+ | status | | | +--------+-------------------+-------------+ An overflow field: +--------+-------------------+-----------------+--------------+ | status | | | | +--------+-------------------+-----------------+--------------+
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| protected static final int | |
| private static final int | FIELD_INITIAL
Constants of the class |
| public static final int | |
| private static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static final boolean | |
| public static final boolean | |
| public static final boolean | |
| public static final boolean | |
| public static final boolean | |
| public static final boolean | |
| public static final boolean | |
| public static final boolean | |
| public static final int | |
| public static final int | readFieldLengthAndSetStreamPosition(byte[] data, int offset, int status, int fieldDataSize, ArrayInputStream ais)
|
| public static final int | |
| public static final int | |
| public static final int | Returns: The length of the field on the page, including it's header.the array where the field is. data, int the offset in the array where the field begin, ie.
the status byte is at data[offset]. offset)read the length of the field and hdr. |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static String | |
| public static final int | write(OutputStream out, int status, int fieldDataLength, int fieldDataSize)
write out the field status and field data Length |
| FIELD_EXTENSIBLE | back to summary |
|---|---|
| public static final int FIELD_EXTENSIBLE | |
| FIELD_FIXED | back to summary |
|---|---|
| protected static final int FIELD_FIXED | |
| FIELD_INITIAL | back to summary |
|---|---|
| private static final int FIELD_INITIAL Constants of the class | |
| FIELD_NONEXISTENT | back to summary |
|---|---|
| public static final int FIELD_NONEXISTENT | |
| FIELD_NOT_NULLABLE | back to summary |
|---|---|
| private static final int FIELD_NOT_NULLABLE | |
| FIELD_NULL | back to summary |
|---|---|
| public static final int FIELD_NULL | |
| FIELD_OVERFLOW | back to summary |
|---|---|
| public static final int FIELD_OVERFLOW | |
| FIELD_TAGGED | back to summary |
|---|---|
| public static final int FIELD_TAGGED | |
| STORED_FIELD_HEADER_STATUS_SIZE | back to summary |
|---|---|
| public static final int STORED_FIELD_HEADER_STATUS_SIZE | |
| StoredFieldHeader | back to summary |
|---|---|
| public StoredFieldHeader() | |
| isExtensible | back to summary |
|---|---|
| public static final boolean isExtensible(int status) | |
| isFixed | back to summary |
|---|---|
| public static final boolean isFixed(int status) | |
| isNonexistent | back to summary |
|---|---|
| public static final boolean isNonexistent(int status) | |
| isNull | back to summary |
|---|---|
| public static final boolean isNull(int status) Get the status of the field
| |
| isNullable | back to summary |
|---|---|
| public static final boolean isNullable(int status) | |
| isNullorNonExistent | back to summary |
|---|---|
| public static final boolean isNullorNonExistent(int status) | |
| isOverflow | back to summary |
|---|---|
| public static final boolean isOverflow(int status) | |
| isTagged | back to summary |
|---|---|
| public static final boolean isTagged(int status) | |
| readFieldDataLength | back to summary |
|---|---|
| public static final int readFieldDataLength(ObjectInput in, int status, int fieldDataSize) throws IOException read the field data length
| |
| readFieldLengthAndSetStreamPosition | back to summary |
|---|---|
| public static final int readFieldLengthAndSetStreamPosition(byte[] data, int offset, int status, int fieldDataSize, ArrayInputStream ais) throws IOException | |
| readStatus | back to summary |
|---|---|
| public static final int readStatus(ObjectInput in) throws IOException read the field status
| |
| readStatus | back to summary |
|---|---|
| public static final int readStatus(byte[] page, int offset) | |
| readTotalFieldLength | back to summary |
|---|---|
| public static final int readTotalFieldLength(byte[] data, int offset) throws IOException read the length of the field and hdr. Optimized routine used to skip a field on a page. It returns the total length of the field including the header portion. It operates directly on the array and does no checking of it's own for limits on the array length, so an array out of bounds exception may be thrown - the routine is meant to be used to read a field from a page so this should not happen.
| |
| setExtensible | back to summary |
|---|---|
| public static final int setExtensible(int status, boolean isExtensible) | |
| setFixed | back to summary |
|---|---|
| public static final int setFixed(int status, boolean isFixed) | |
| setInitial | back to summary |
|---|---|
| public static final int setInitial() Set accessors for setting bits in the status field. | |
| setNonexistent | back to summary |
|---|---|
| public static final int setNonexistent(int status) | |
| setNull | back to summary |
|---|---|
| public static final int setNull(int status, boolean isNull) | |
| setOverflow | back to summary |
|---|---|
| public static final int setOverflow(int status, boolean isOverflow) | |
| setTagged | back to summary |
|---|---|
| public static final int setTagged(int status, boolean isTagged) | |
| size | back to summary |
|---|---|
| public static final int size(int status, int fieldDataLength, int fieldDataSize) | |
| toDebugString | back to summary |
|---|---|
| public static String toDebugString(int status) | |
| write | back to summary |
|---|---|
| public static final int write(OutputStream out, int status, int fieldDataLength, int fieldDataSize) throws IOException write out the field status and field data Length
| |