Portability | portable |
---|---|
Stability | experimental |
Maintainer | Timo B. Huebel (tbh@holumbus.org) |
Safe Haskell | None |
Version : 0.1
This module provides several specific compression mechanisms for different
parts of indexes. Right now, just a general compression scheme for
the Occurrences
and Positions
are provided.
Compression types
Compress
deflateOcc :: Occurrences -> CompressedOccurrencesSource
Compress the occurrences by just compressing all contained positions.
deflatePos :: Positions -> CompressedPositionsSource
Save some memory on the positions by just saving their differences and compressing these.
Decompress
inflateOcc :: CompressedOccurrences -> OccurrencesSource
Decompressing the occurrences by just decompressing all contained positions.
inflatePos :: CompressedPositions -> PositionsSource
Convert the compressed differences back to a set of integers.