|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.mvstore.Chunk
public class Chunk
A chunk of data, containing one or multiple pages.
Chunks are page aligned (each page is usually 4096 bytes). There are at most 67 million (2^26) chunks, each chunk is at most 2 GB large. File format: 1 byte: 'c' 4 bytes: length 4 bytes: chunk id (an incrementing number) 4 bytes: pageCount 8 bytes: metaRootPos 8 bytes: maxLengthLive [ Page ] *
| Field Summary | |
|---|---|
int |
collectPriority
The garbage collection priority. |
int |
id
The chunk id. |
int |
length
The length in bytes. |
long |
maxLength
The sum of the max length of all pages. |
long |
maxLengthLive
The sum of the max length of all pages that are in use. |
long |
metaRootPos
The position of the meta root. |
int |
pageCount
The total number of pages in this chunk. |
int |
pageCountLive
The number of pages still alive. |
long |
start
The start position within the file. |
long |
time
When this chunk was created, in milliseconds after the store was created. |
long |
version
The version stored in this chunk. |
| Method Summary | |
|---|---|
java.lang.String |
asString()
Get the chunk data as a string. |
boolean |
equals(java.lang.Object o)
|
static Chunk |
fromString(java.lang.String s)
Build a block from the given string. |
int |
getFillRate()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final int id
public long start
public int length
public int pageCount
public int pageCountLive
public long maxLength
public long maxLengthLive
public int collectPriority
public long metaRootPos
public long version
public long time
| Method Detail |
|---|
public static Chunk fromString(java.lang.String s)
s - the string
public int getFillRate()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String asString()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||