public class Chunk
extends java.lang.Object
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
Chunk.PositionComparator |
| Modifier and Type | Field and Description |
|---|---|
long |
block
The start block number within the file.
|
int |
id
The chunk id.
|
int |
len
The length in number of blocks.
|
int |
mapId
The last used map id.
|
static int |
MAX_ID
The maximum chunk id.
|
long |
maxLen
The sum of the max length of all pages.
|
long |
maxLenLive
The sum of the max length of all pages that are in use.
|
long |
next
The predicted position of the next chunk.
|
long |
time
When this chunk was created, in milliseconds after the store was created.
|
long |
unused
When this chunk was no longer needed, in milliseconds after the store was
created.
|
long |
version
The version stored in this chunk.
|
public static final int MAX_ID
public final int id
public volatile long block
public int len
public long maxLen
public long maxLenLive
public long version
public long time
public long unused
public int mapId
public long next
public static Chunk fromString(java.lang.String s)
s - the stringpublic 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