ReftableReader. Instances are tied to a
specific block in the file so are not reused for other blocks. Instances hold
an offset into the block.
| Modifier and Type | Field and Description |
|---|---|
| private byte | |
| private byte[] | |
| private int | |
| private long | |
| private int | |
| private int | |
| private byte[] | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static int | |
| pack-priv long | |
| private long | |
| private static IOException | |
| private static IOException | |
| pack-priv boolean | |
| pack-priv String | |
| private static Ref | |
| pack-priv boolean | |
| private void | |
| pack-priv void | |
| pack-priv void | |
| private void | |
| pack-priv LongList | |
| private short | |
| pack-priv ReflogEntry | |
| pack-priv long | |
| private PersonIdent | |
| pack-priv long | |
| pack-priv Ref | |
| pack-priv long | |
| private ObjectId | |
| private String | |
| private int | |
| private long | |
| private int | Returns: <0 if the key occurs before the start of this block;
0 if the block is positioned on the key; >0 if
the key occurs after the last key of this block.key the caller wants to find. key, int current record pointer from restart table binary search. rPtr, int current restart table index. rIdx, int result of compare from restart table binary search. rCmp)Performs the linear search step within a restart interval. |
| pack-priv int | Returns: <0 if the key occurs before the start of this block;
0 if the block is positioned on the key; >0 if
the key occurs after the last key of this block.key to find. key)Finds a key in the block and positions the current pointer on its record. |
| private void | |
| private void | |
| pack-priv void | |
| pack-priv byte | |
| pack-priv void |
| blockType | back to summary |
|---|---|
| private byte blockType | |
| buf | back to summary |
|---|---|
| private byte[] buf | |
| bufLen | back to summary |
|---|---|
| private int bufLen | |
| endPosition | back to summary |
|---|---|
| private long endPosition | |
| keysEnd | back to summary |
|---|---|
| private int keysEnd | |
| keysStart | back to summary |
|---|---|
| private int keysStart | |
| nameBuf | back to summary |
|---|---|
| private byte[] nameBuf | |
| nameLen | back to summary |
|---|---|
| private int nameLen | |
| ptr | back to summary |
|---|---|
| private int ptr | |
| restartCnt | back to summary |
|---|---|
| private int restartCnt | |
| restartTbl | back to summary |
|---|---|
| private int restartTbl | |
| valueType | back to summary |
|---|---|
| private int valueType | |
| BlockReader | back to summary |
|---|---|
| pack-priv BlockReader() | |
| decodeBlockLen | back to summary |
|---|---|
| pack-priv static int decodeBlockLen(int typeAndSize) | |
| endPosition | back to summary |
|---|---|
| pack-priv long endPosition() | |
| inflateBuf | back to summary |
|---|---|
| private long inflateBuf(BlockSource src, long pos, int blockLen, int fileBlockSize) throws IOException | |
| invalidBlock | back to summary |
|---|---|
| private static IOException invalidBlock() | |
| invalidBlock | back to summary |
|---|---|
| private static IOException invalidBlock(Throwable cause) | |
| match | back to summary |
|---|---|
| pack-priv boolean match(byte[] match, boolean matchIsPrefix) | |
| name | back to summary |
|---|---|
| pack-priv String name() | |
| newRef | back to summary |
|---|---|
| private static Ref newRef(String name, long updateIndex) | |
| next | back to summary |
|---|---|
| pack-priv boolean next() | |
| parseBlockStart | back to summary |
|---|---|
| private void parseBlockStart(BlockSource src, long pos, int fileBlockSize) throws IOException | |
| parseKey | back to summary |
|---|---|
| pack-priv void parseKey() | |
| readBlock | back to summary |
|---|---|
| pack-priv void readBlock(BlockSource src, long pos, int fileBlockSize) throws IOException | |
| readBlockIntoBuf | back to summary |
|---|---|
| private void readBlockIntoBuf(BlockSource src, long pos, int size) throws IOException | |
| readBlockPositionList | back to summary |
|---|---|
pack-priv LongList readBlockPositionList()
| |
| readInt16 | back to summary |
|---|---|
| private short readInt16() | |
| readLogEntry | back to summary |
|---|---|
pack-priv ReflogEntry readLogEntry()
| |
| readLogUpdateIndex | back to summary |
|---|---|
| pack-priv long readLogUpdateIndex() | |
| readPersonIdent | back to summary |
|---|---|
| private PersonIdent readPersonIdent() | |
| readPositionFromIndex | back to summary |
|---|---|
| pack-priv long readPositionFromIndex() throws IOException | |
| readRef | back to summary |
|---|---|
| pack-priv Ref readRef(long minUpdateIndex) throws IOException | |
| readUpdateIndexDelta | back to summary |
|---|---|
| pack-priv long readUpdateIndexDelta() | |
| readValueId | back to summary |
|---|---|
| private ObjectId readValueId() | |
| readValueString | back to summary |
|---|---|
| private String readValueString() | |
| readVarint32 | back to summary |
|---|---|
| private int readVarint32() | |
| readVarint64 | back to summary |
|---|---|
| private long readVarint64() | |
| scanToKey | back to summary |
|---|---|
| private int scanToKey(byte[] key, int rPtr, int rIdx, int rCmp) Performs the linear search step within a restart interval.
Starts at a restart position whose key sorts before (or equal to)
| |
| seekKey | back to summary |
|---|---|
| pack-priv int seekKey(byte[] key) Finds a key in the block and positions the current pointer on its record.
As a side-effect this method arranges for the current pointer to be near
or exactly on
| |
| setupEmptyFileBlock | back to summary |
|---|---|
| private void setupEmptyFileBlock() | |
| skipString | back to summary |
|---|---|
| private void skipString() | |
| skipValue | back to summary |
|---|---|
| pack-priv void skipValue() | |
| type | back to summary |
|---|---|
| pack-priv byte type() | |
| verifyIndex | back to summary |
|---|---|
| pack-priv void verifyIndex() throws IOException | |