| Constructor and Description |
|---|
PackReverseIndex(PackIndex packIndex)
Create reverse index from straight/forward pack index, by indexing all
its entries.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public PackReverseIndex(PackIndex packIndex)
packIndex - forward index - entries to (reverse) index.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.Copyright © 2013. All rights reserved.