private class ReftableWriter.IndexBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) int |
bytes |
(package private) java.util.List<BlockWriter.IndexEntry> |
entries |
(package private) byte |
keyType |
(package private) int |
levels |
(package private) long |
rootPosition |
Constructor and Description |
---|
IndexBuilder(byte kt) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
estimateBytes(long curBlockPos) |
(package private) void |
writeIndex() |
private void |
writeMultiLevelIndex(java.util.List<BlockWriter.IndexEntry> keys) |
private java.util.List<BlockWriter.IndexEntry> |
writeOneLevel(java.util.List<BlockWriter.IndexEntry> keys) |
final byte keyType
java.util.List<BlockWriter.IndexEntry> entries
long rootPosition
int bytes
int levels
int estimateBytes(long curBlockPos)
void writeIndex() throws java.io.IOException
java.io.IOException
private void writeMultiLevelIndex(java.util.List<BlockWriter.IndexEntry> keys) throws java.io.IOException
java.io.IOException
private java.util.List<BlockWriter.IndexEntry> writeOneLevel(java.util.List<BlockWriter.IndexEntry> keys) throws java.io.IOException
java.io.IOException