Interface DfsPackFile.PackBitmapIndexLoader

Enclosing class:
DfsPackFile

public static interface DfsPackFile.PackBitmapIndexLoader
Loads the PackBitmapIndex associated with this packfile
  • Method Details

    • hasBitmaps

      boolean hasBitmaps(DfsPackDescription desc)
      Does this pack has bitmaps associated?
      Parameters:
      desc - the pack
      Returns:
      true if the pack has bitmaps
    • keepInDfs

      boolean keepInDfs(DfsPackDescription desc)
      If the returned instance must be kept in DFS cache It should be true when the instance is expensive to load and can be reused.
      Parameters:
      desc - the pack
      Returns:
      true if the returned bitmap index should be kept in DFS
    • loadPackBitmapIndex

      Returns a PackBitmapIndex for this pack, if the pack has bitmaps associated.
      Parameters:
      ctx - the reader
      pack - the pack
      Returns:
      the pack bitmap index and bytes size (when applicable)
      Throws:
      IOException - error accessing storage