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) int
bytes
(package private) java.util.List<BlockWriter.IndexEntry>
entries
(package private) byte
keyType
(package private) int
levels
(package private) long
rootPosition
-
Constructor Summary
Constructors Constructor Description IndexBuilder(byte kt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
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
-
-