net.metanotion.io.block.index
public class BSkipLevels extends SkipLevels
Magic number (long) max height (unsigned short) non-null height (unsigned short) span page (unsigned int) height number of level pages (unsigned ints)Always fits on one page.
Modifier and Type | Field and Description |
---|---|
BlockFile |
bf |
(package private) static int |
HEADER_LEN |
int |
levelPage |
int |
spanPage |
bottom, levels, MAX_SIZE
Constructor and Description |
---|
BSkipLevels(BlockFile bf,
int levelPage,
BSkipList bsl) |
Modifier and Type | Method and Description |
---|---|
void |
blvlck(boolean fix,
int width) |
void |
flush() |
static void |
init(BlockFile bf,
int page,
int spanPage,
int maxHeight) |
void |
killInstance() |
SkipLevels |
newInstance(int levels,
SkipSpan ss,
SkipList sl) |
String |
toString() |
static final int HEADER_LEN
public final int levelPage
public final int spanPage
public final BlockFile bf
public BSkipLevels(BlockFile bf, int levelPage, BSkipList bsl) throws IOException
IOException
public static void init(BlockFile bf, int page, int spanPage, int maxHeight) throws IOException
IOException
public void flush()
flush
in class SkipLevels
public void killInstance()
killInstance
in class SkipLevels
public SkipLevels newInstance(int levels, SkipSpan ss, SkipList sl)
newInstance
in class SkipLevels
public void blvlck(boolean fix, int width)
blvlck
in class SkipLevels