Page.PageChildren

Contains information about which other pages are referenced (directly or indirectly) by the given page. This is a subset of the page data, for pages of type node. This information is used for garbage collection (to quickly find out which chunks are still in use).

Methods
static Page.PageChildren read(FileStore fileStore, long pos, int mapId, long filePos, long maxPos)
Read an inner node page from the buffer, but ignore the keys and values.
static Page.PageChildren read(FileStore fileStore, long pos, int mapId, long filePos, long maxPos)
Read an inner node page from the buffer, but ignore the keys and values.
Parameters:
fileStore - the file store
pos - the position
mapId - the map id
filePos - the position in the file
maxPos - the maximum position (the end of the chunk)
Returns:
the page children object
int getMemory()
int getMemory()
void removeDuplicateChunkReferences()
Only keep one reference to the same chunk.
void removeDuplicateChunkReferences()
Only keep one reference to the same chunk. Only leaf references are removed (references to inner nodes are not removed, as they could indirectly point to other chunks).

Fields
static long[] EMPTY_ARRAY
static long[] children
static boolean chunkList
static long pos

EMPTY_ARRAY

An empty array of type long.

children

The page positions of (direct or indirect) children. Depending on the use case, this can be the complete list, or only a subset of all children, for example only only one reference to a child in another chunk.

chunkList

Whether this object only contains the list of chunks.

pos

The position of the page.