Class ReftableWriter.IndexBuilder
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.reftable.ReftableWriter.IndexBuilder
-
- Enclosing class:
- ReftableWriter
private class ReftableWriter.IndexBuilder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intbytes(package private) java.util.List<BlockWriter.IndexEntry>entries(package private) bytekeyType(package private) intlevels(package private) longrootPosition
-
Constructor Summary
Constructors Constructor Description IndexBuilder(byte kt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intestimateBytes(long curBlockPos)(package private) voidwriteIndex()private voidwriteMultiLevelIndex(java.util.List<BlockWriter.IndexEntry> keys)private java.util.List<BlockWriter.IndexEntry>writeOneLevel(java.util.List<BlockWriter.IndexEntry> keys)
-
-
-
Field Detail
-
keyType
final byte keyType
-
entries
java.util.List<BlockWriter.IndexEntry> entries
-
rootPosition
long rootPosition
-
bytes
int bytes
-
levels
int levels
-
-
Method Detail
-
estimateBytes
int estimateBytes(long curBlockPos)
-
writeIndex
void writeIndex() throws java.io.IOException- Throws:
java.io.IOException
-
writeMultiLevelIndex
private void writeMultiLevelIndex(java.util.List<BlockWriter.IndexEntry> keys) throws java.io.IOException
- Throws:
java.io.IOException
-
writeOneLevel
private java.util.List<BlockWriter.IndexEntry> writeOneLevel(java.util.List<BlockWriter.IndexEntry> keys) throws java.io.IOException
- Throws:
java.io.IOException
-
-