Class BaseSearch
java.lang.Object
org.eclipse.jgit.internal.storage.pack.BaseSearch
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IntSet
private final ObjectId[]
private final List<ObjectToPack>
private final MutableObjectId
private static final int
private static final int
private final ObjectIdOwnerMap<ObjectToPack>
private final CanonicalTreeParser
private final ProgressMonitor
private final ObjectReader
private final ObjectIdOwnerMap<BaseSearch.TreeWithData>
-
Constructor Summary
ConstructorsConstructorDescriptionBaseSearch
(ProgressMonitor countingMonitor, Set<RevTree> bases, ObjectIdOwnerMap<ObjectToPack> objects, List<ObjectToPack> edges, ObjectReader or) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
add
(AnyObjectId id, int objectType, int pathHash) (package private) void
addBase
(int objectType, byte[] pathBuf, int pathLen, int pathHash) private static int
modeForType
(int typeCode) private static int
nextSlash
(byte[] pathBuf, int ptr, int end) private byte[]
readTree
(AnyObjectId id)
-
Field Details
-
M_BLOB
private static final int M_BLOB -
M_TREE
private static final int M_TREE -
progress
-
reader
-
baseTrees
-
objectsMap
-
edgeObjects
-
alreadyProcessed
-
treeCache
-
parser
-
idBuf
-
-
Constructor Details
-
BaseSearch
BaseSearch(ProgressMonitor countingMonitor, Set<RevTree> bases, ObjectIdOwnerMap<ObjectToPack> objects, List<ObjectToPack> edges, ObjectReader or)
-
-
Method Details
-
addBase
- Throws:
IOException
-
modeForType
private static int modeForType(int typeCode) -
nextSlash
private static int nextSlash(byte[] pathBuf, int ptr, int end) -
add
-
readTree
private byte[] readTree(AnyObjectId id) throws MissingObjectException, IncorrectObjectTypeException, IOException
-