public class Chunk extends 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 | Field and Description |
---|---|
long |
block
The start block number within the file.
|
int |
collectPriority
The garbage collection priority.
|
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 |
metaRootPos
The position of the meta root.
|
long |
next
The predicted position of the next chunk.
|
int |
pageCount
The total number of pages in this chunk.
|
int |
pageCountLive
The number of pages still alive.
|
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.
|
Modifier and Type | Method and Description |
---|---|
String |
asString()
Get the chunk data as a string.
|
boolean |
equals(Object o) |
static Chunk |
fromString(String s)
Build a block from the given string.
|
int |
getFillRate()
Calculate the fill rate in %.
|
int |
hashCode() |
String |
toString() |
public static final int MAX_ID
public final int id
public long block
public int len
public int pageCount
public int pageCountLive
public long maxLen
public long maxLenLive
public int collectPriority
public long metaRootPos
public long version
public long time
public long unused
public int mapId
public long next
public static Chunk fromString(String s)
s
- the stringpublic int getFillRate()
public String asString()
Copyright © 2017 JBoss by Red Hat. All rights reserved.