|
||||||||
| 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 ] *
| 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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| 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()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||