|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jgit.storage.file.PackReverseIndex
public class PackReverseIndex
Reverse index for forward pack index. Provides operations based on offset instead of object id. Such offset-based reverse lookups are performed in O(log n) time.
PackIndex,
PackFile| Constructor Summary | |
|---|---|
PackReverseIndex(PackIndex packIndex)
Create reverse index from straight/forward pack index, by indexing all its entries. |
|
| Method Summary | |
|---|---|
long |
findNextOffset(long offset,
long maxOffset)
Search for the next offset to the specified offset in this pack (reverse) index. |
ObjectId |
findObject(long offset)
Search for object id with the specified start offset in this pack (reverse) index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PackReverseIndex(PackIndex packIndex)
packIndex - forward index - entries to (reverse) index.| Method Detail |
|---|
public ObjectId findObject(long offset)
offset - start offset of object to find.
public long findNextOffset(long offset,
long maxOffset)
throws CorruptObjectException
offset - start offset of previous object (must be valid-existing
offset).maxOffset - maximum offset in a pack (returned when there is no next
offset).
CorruptObjectException - when there is no object with the provided offset.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||