| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private static final int | |
| private final int[] | |
| private final int | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | GraphObjectIndex(int
length of object hash. hashLength, byte[] content of OID Fanout Chunk. oidFanout, byte[] content of OID Lookup Chunk. oidLookup)Initialize the GraphObjectIndex. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | Returns: the commit-graph position or -1 if the object was not found.the id for which the commit-graph position will be found. id)Find the position in the commit-graph of the specified id. |
| pack-priv long | |
| pack-priv ObjectId | Returns: the ObjectId or null if it's not found.the position in the commit-graph of the object. graphPos)Get the object at the commit-graph position. |
| private int |
| commitCnt | back to summary |
|---|---|
| private final long commitCnt | |
| FANOUT | back to summary |
|---|---|
| private static final int FANOUT | |
| fanoutTable | back to summary |
|---|---|
| private final int[] fanoutTable | |
| hashLength | back to summary |
|---|---|
| private final int hashLength | |
| oidLookup | back to summary |
|---|---|
| private final byte[] oidLookup | |
| GraphObjectIndex | back to summary |
|---|---|
| pack-priv GraphObjectIndex(int hashLength, byte[] oidFanout, byte[] oidLookup) throws CommitGraphFormatException Initialize the GraphObjectIndex.
| |
| findGraphPosition | back to summary |
|---|---|
| pack-priv int findGraphPosition(AnyObjectId id) Find the position in the commit-graph of the specified id.
| |
| getCommitCnt | back to summary |
|---|---|
| pack-priv long getCommitCnt() | |
| getObjectId | back to summary |
|---|---|
| pack-priv ObjectId getObjectId(int graphPos) Get the object at the commit-graph position.
| |
| objIdOffset | back to summary |
|---|---|
| private int objIdOffset(int pos) | |