| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | PackObjectSizeIndexV1.
A byte[] that should be interpreted as an int[] |
| private static class | PackObjectSizeIndexV1.
A byte[] that should be interpreted as an long[] |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final byte | |
| private static final byte | |
| private final UInt24Array | |
| private final PackObjectSizeIndexV1. | |
| private final PackObjectSizeIndexV1. | sizes32
Parallel array to concat(positions24, positions32) with the size of the objects. |
| private final PackObjectSizeIndexV1. | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public long | getObjectCount()
Implements org. Number of objects in the index |
| public long | getSize(int
position in the pack (as returned from PackIndex) idxOffset)Implements org. Returns the inflated size of the object. |
| public int | getThreshold()
Implements org. Minimal size of an object to be included in this index Cut-off value used at generation time to decide what objects to index. |
| pack-priv static PackObjectSizeIndex |
| BITS_24 | back to summary |
|---|---|
| private static final byte BITS_24 | |
| BITS_32 | back to summary |
|---|---|
| private static final byte BITS_32 | |
| positions24 | back to summary |
|---|---|
| private final UInt24Array positions24 | |
| positions32 | back to summary |
|---|---|
| private final PackObjectSizeIndexV1. | |
| sizes32 | back to summary |
|---|---|
| private final PackObjectSizeIndexV1. Parallel array to concat(positions24, positions32) with the size of the objects. A value >= 0 is the size of the object. A negative value means the size doesn't fit in an int and |value|-1 is the position for the size in the size64 array e.g. a value of -1 is sizes64[0], -2 = sizes64[1], ... | |
| sizes64 | back to summary |
|---|---|
| private final PackObjectSizeIndexV1. | |
| threshold | back to summary |
|---|---|
| private final int threshold | |
| PackObjectSizeIndexV1 | back to summary |
|---|---|
| private PackObjectSizeIndexV1(InputStream stream, int threshold, int objCount) throws IOException | |
| getObjectCount | back to summary |
|---|---|
| public long getObjectCount() Implements org. Doc from org. Number of objects in the index
| |
| getSize | back to summary |
|---|---|
| public long getSize(int idxOffset) Implements org. Doc from org. Returns the inflated size of the object.
| |
| getThreshold | back to summary |
|---|---|
| public int getThreshold() Implements org. Doc from org. Minimal size of an object to be included in this index Cut-off value used at generation time to decide what objects to index.
| |
| parse | back to summary |
|---|---|
| pack-priv static PackObjectSizeIndex parse(InputStream in) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | getObjectCount()
Implements org. Number of objects in the index |
| public long | getSize(int
position in the pack (as returned from PackIndex) idxOffset)Implements org. Returns the inflated size of the object. |
| public int | getThreshold()
Implements org. Minimal size of an object to be included in this index Cut-off value used at generation time to decide what objects to index. |
| threshold | back to summary |
|---|---|
| private final int threshold | |
| EmptyPackObjectSizeIndex | back to summary |
|---|---|
| pack-priv EmptyPackObjectSizeIndex(int threshold) | |
| getObjectCount | back to summary |
|---|---|
| public long getObjectCount() Implements org. Doc from org. Number of objects in the index
| |
| getSize | back to summary |
|---|---|
| public long getSize(int idxOffset) Implements org. Doc from org. Returns the inflated size of the object.
| |
| getThreshold | back to summary |
|---|---|
| public int getThreshold() Implements org. Doc from org. Minimal size of an object to be included in this index Cut-off value used at generation time to decide what objects to index.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private static final PackObjectSizeIndexV1. | |
| private static final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | Returns: position of the element in the array or -1 if not foundelement to look for needle)Returns position of element in array, -1 if not there |
| pack-priv boolean | |
| pack-priv static PackObjectSizeIndexV1. | |
| pack-priv int | |
| pack-priv int |
| data | back to summary |
|---|---|
| private final byte[] data | |
| EMPTY | back to summary |
|---|---|
| private static final PackObjectSizeIndexV1. | |
| INT_SIZE | back to summary |
|---|---|
| private static final int INT_SIZE | |
| size | back to summary |
|---|---|
| private final int size | |
| IntArray | back to summary |
|---|---|
| private IntArray(byte[] data) | |
| binarySearch | back to summary |
|---|---|
| pack-priv int binarySearch(int needle) Returns position of element in array, -1 if not there
| |
| empty | back to summary |
|---|---|
| pack-priv boolean empty() | |
| from | back to summary |
|---|---|
| pack-priv static PackObjectSizeIndexV1. | |
| get | back to summary |
|---|---|
| pack-priv int get(int position) | |
| size | back to summary |
|---|---|
| pack-priv int size() | |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private static final PackObjectSizeIndexV1. | |
| private static final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static PackObjectSizeIndexV1. | |
| pack-priv long |
| data | back to summary |
|---|---|
| private final byte[] data | |
| EMPTY | back to summary |
|---|---|
| private static final PackObjectSizeIndexV1. | |
| LONG_SIZE | back to summary |
|---|---|
| private static final int LONG_SIZE | |
| size | back to summary |
|---|---|
| private final int size | |
| LongArray | back to summary |
|---|---|
| private LongArray(byte[] data) | |
| from | back to summary |
|---|---|
| pack-priv static PackObjectSizeIndexV1. | |
| get | back to summary |
|---|---|
| pack-priv long get(int position) | |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv byte | |
| pack-priv int |
| buffer | back to summary |
|---|---|
| private final byte[] buffer | |
| StreamHelper | back to summary |
|---|---|
| private StreamHelper() | |
| readByte | back to summary |
|---|---|
| pack-priv byte readByte(InputStream in) throws IOException | |
| readInt | back to summary |
|---|---|
| pack-priv int readInt(InputStream in) throws IOException | |