| java.lang.Object org.h2.util.CacheObject org.h2.store.Record
All known Subclasses: org.h2.result.Row, org.h2.index.LinearHashHead, org.h2.index.BtreeHead, org.h2.index.LinearHashBucket, org.h2.index.BtreePage,
Record | abstract public class Record extends CacheObject (Code) | | A record represents a persisted row in a table, or a index page. When a
record is persisted to disk, it is first written into a
DataPage buffer.
|
canRemove | public boolean canRemove()(Code) | | |
commit | public void commit()(Code) | | |
getByteCount | abstract public int getByteCount(DataPage dummy) throws SQLException(Code) | | Get the number of bytes required for the data if the given data page
would be used.
Parameters: dummy - the template data page the number of bytes |
getDeleted | public boolean getDeleted()(Code) | | |
getSessionId | public int getSessionId()(Code) | | |
getStorageId | public int getStorageId()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
isLogWritten | public boolean isLogWritten()(Code) | | |
prepareWrite | public void prepareWrite() throws SQLException(Code) | | This method is called just before the page is written.
If a read operation is required before writing, this needs to be done here.
Because the data page buffer is shared for read and write operations.
The method may read data and change the file pointer.
|
setDeleted | public void setDeleted(boolean deleted)(Code) | | |
setLastLog | public void setLastLog(int log, int pos)(Code) | | |
setLogWritten | public void setLogWritten(int log, int pos)(Code) | | |
setSessionId | public void setSessionId(int sessionId)(Code) | | |
setStorageId | public void setStorageId(int storageId)(Code) | | |
write | abstract public void write(DataPage buff) throws SQLException(Code) | | Write the record to the data page.
Parameters: buff - the data page |
|
|