| java.lang.Object org.h2.store.Storage
Storage | public class Storage (Code) | | This class represents an persistent container that stores data of a table or
an index. An object contains a list of records, see
Record . For each
storage there is a
RecordReader object that knows how to convert
records into a byte array and vice versa. The data is stored in a
DiskFile . A storage occupies a number of pages in a file.
File format:
int block size
int storage id
record data
byte checksum
[bytes * fillerLength]
|
ALLOCATE_POS | final public static int ALLOCATE_POS(Code) | | |
addPage | void addPage(int i)(Code) | | |
free | void free(int pos, int blockCount)(Code) | | |
getNext | public int getNext(Record record)(Code) | | Gets the position of the next record.
Parameters: record - the last record (null to get the first record) -1 if no record is found, otherwise the position |
getRecordCount | public int getRecordCount()(Code) | | |
getRecordOverhead | public int getRecordOverhead()(Code) | | |
incrementRecordCount | void incrementRecordCount()(Code) | | |
removePage | void removePage(int i)(Code) | | |
setRecordCount | public void setRecordCount(int recordCount)(Code) | | |
|
|