Class CompressingMetaIndex

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, MetaIndex
    Direct Known Subclasses:
    UncompressedMetaIndex

    public class CompressingMetaIndex
    extends BaseCompressingMetaIndex
    Implementation of BaseCompressingMetaIndex that uses Zlib deflate algorithm to compress entries
    • Field Detail

      • inflaterCache

        protected static final java.lang.ThreadLocal<java.util.zip.Inflater> inflaterCache
        thread-local cache of Inflaters to be re-used for decompression
    • Constructor Detail

      • CompressingMetaIndex

        public CompressingMetaIndex​(IndexOnDisk index,
                                    java.lang.String structureName)
                             throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • decode

        protected byte[] decode​(byte[] input)
                         throws java.io.IOException
        Specified by:
        decode in class BaseCompressingMetaIndex
        Throws:
        java.io.IOException