Top Inners Fields Constructors Methods
org.eclipse.jgit.internal.storage.pack

pack-priv Class BaseSearch

extends Object
Class Inheritance
Static Imports
org.eclipse.jgit.lib.Constants.OBJ_BLOB, .Constants.OBJ_TREE

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private 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

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
add(AnyObjectId id, int objectType, int pathHash)

pack-priv 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[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

alreadyProcessedback to summary
private final IntSet alreadyProcessed
baseTreesback to summary
private final ObjectId[] baseTrees
edgeObjectsback to summary
private final List<ObjectToPack> edgeObjects
idBufback to summary
private final MutableObjectId idBuf
M_BLOBback to summary
private static final int M_BLOB
M_TREEback to summary
private static final int M_TREE
objectsMapback to summary
private final ObjectIdOwnerMap<ObjectToPack> objectsMap
parserback to summary
private final CanonicalTreeParser parser
progressback to summary
private final ProgressMonitor progress
readerback to summary
private final ObjectReader reader
treeCacheback to summary
private final ObjectIdOwnerMap<BaseSearch.TreeWithData> treeCache

Constructor Detail

BaseSearchback to summary
pack-priv BaseSearch(ProgressMonitor countingMonitor, Set<RevTree> bases, ObjectIdOwnerMap<ObjectToPack> objects, List<ObjectToPack> edges, ObjectReader or)

Method Detail

addback to summary
private void add(AnyObjectId id, int objectType, int pathHash)
Annotations
@SuppressWarnings:ReferenceEquality
addBaseback to summary
pack-priv void addBase(int objectType, byte[] pathBuf, int pathLen, int pathHash) throws IOException
modeForTypeback to summary
private static int modeForType(int typeCode)
nextSlashback to summary
private static int nextSlash(byte[] pathBuf, int ptr, int end)
readTreeback to summary
private byte[] readTree(AnyObjectId id) throws MissingObjectException, IncorrectObjectTypeException, IOException
org.eclipse.jgit.internal.storage.pack back to summary

private Class BaseSearch.TreeWithData

extends Entry
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final byte[]

Constructor Summary

AccessConstructor and Description
pack-priv
TreeWithData(AnyObjectId id, byte[] buf)

Field Detail

bufback to summary
pack-priv final byte[] buf

Constructor Detail

TreeWithDataback to summary
pack-priv TreeWithData(AnyObjectId id, byte[] buf)