| java.lang.Object org.h2.store.DataPage
All known Subclasses: org.h2.store.DataPageText, org.h2.store.DataPageBinary,
DataPage | abstract public class DataPage (Code) | | A data page is a byte buffer that contains persistent data of a row or index
page.
|
Field Summary | |
final static boolean | CHECKSUM | protected byte[] | data The data itself. | protected DataHandler | handler The data handler responsible for lob objects. | protected int | pos The current write or read position. |
CHECKSUM | final static boolean CHECKSUM(Code) | | |
data | protected byte[] data(Code) | | The data itself.
|
handler | protected DataHandler handler(Code) | | The data handler responsible for lob objects.
|
pos | protected int pos(Code) | | The current write or read position.
|
check | abstract public void check(int len) throws SQLException(Code) | | Test if the checksum is correct.
Parameters: len - the number of bytes throws: SQLException - if the checksum does not match |
checkCapacity | public void checkCapacity(int plus)(Code) | | |
fill | abstract public void fill(int len)(Code) | | Increase the size to the given length.
The current position is set to the given value.
Parameters: len - the new length |
fillAligned | public void fillAligned()(Code) | | |
getBytes | public byte[] getBytes()(Code) | | |
getFillerLength | abstract public int getFillerLength()(Code) | | The space required for the checksum and additional fillers.
the size |
getIntLen | abstract public int getIntLen()(Code) | | Get the length of an integer value.
the length |
getLongLen | abstract public int getLongLen(long x)(Code) | | Get the length of a long value.
Parameters: x - the value the length |
getStringLen | abstract public int getStringLen(String s)(Code) | | Get the length of a String value.
Parameters: s - the value the length |
length | public int length()(Code) | | |
read | public void read(byte[] buff, int off, int len)(Code) | | |
readByte | public int readByte()(Code) | | |
readInt | abstract public int readInt()(Code) | | Read an integer at the current position.
The current position is incremented.
the value |
readLong | public long readLong()(Code) | | |
readString | abstract public String readString()(Code) | | Read a String value.
The current position is incremented.
the value |
reset | public void reset()(Code) | | |
setInt | abstract public void setInt(int pos, int x)(Code) | | Update an integer at the given position.
The current position is not change.
Parameters: pos - the position Parameters: x - the value |
setPos | public void setPos(int pos)(Code) | | |
updateChecksum | abstract public void updateChecksum()(Code) | | Calculate the checksum and write.
|
write | public void write(byte[] buff, int off, int len)(Code) | | |
writeByte | public void writeByte(byte x)(Code) | | |
writeDataPageNoSize | public void writeDataPageNoSize(DataPage page)(Code) | | |
writeInt | abstract public void writeInt(int x)(Code) | | Write an integer at the current position.
The current position is incremented.
Parameters: x - the value |
writeLong | public void writeLong(long x)(Code) | | |
writeString | abstract public void writeString(String s)(Code) | | Write a String value.
The current position is incremented.
Parameters: s - the value |
|
|