PackReverseIndex.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static PackReverseIndex | Returns: the reverse index instancethe forward index to compute from packIndex)Compute an in-memory pack reverse index from the in-memory pack forward index. |
| pack-priv static PackReverseIndex | Returns: the reverse index instancethe file to read the pack file from, if it exists idxFile, long the number of objects in the corresponding pack objectCount, PackBitmapIndex.a function to lazily get the corresponding forward index packIndexSupplierCreate an in-memory pack reverse index by reading it from the given file if the file exists, or computing it from the given pack index if the file doesn't exist. |
| pack-priv static PackReverseIndex | Returns: the reverse index instancethe input stream to read the contents from src, long the number of objects in the corresponding pack objectCount, PackBitmapIndex.a function to lazily get the corresponding forward index packIndexSupplierRead an in-memory pack reverse index from the given input stream. |
| PackReverseIndexFactory | back to summary |
|---|---|
| public PackReverseIndexFactory() | |
| computeFromIndex | back to summary |
|---|---|
| public static PackReverseIndex computeFromIndex(PackIndex packIndex) Compute an in-memory pack reverse index from the in-memory pack forward index. This computation uses insertion sort, which has a quadratic runtime on average.
| |
| openOrCompute | back to summary |
|---|---|
| pack-priv static PackReverseIndex openOrCompute(File idxFile, long objectCount, PackBitmapIndex. Create an in-memory pack reverse index by reading it from the given file if the file exists, or computing it from the given pack index if the file doesn't exist.
| |
| readFromFile | back to summary |
|---|---|
| pack-priv static PackReverseIndex readFromFile(InputStream src, long objectCount, PackBitmapIndex. Read an in-memory pack reverse index from the given input stream. This has a linear runtime.
| |