Class CompressingMetaIndexBuilder

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    public class CompressingMetaIndexBuilder
    extends BaseMetaIndexBuilder
    Creates a metaindex structure that compresses all values using Deflate.
    • Field Detail

      • zip

        protected java.util.zip.Deflater zip
    • Constructor Detail

      • CompressingMetaIndexBuilder

        public CompressingMetaIndexBuilder​(IndexOnDisk _index,
                                           java.lang.String[] _keyNames,
                                           int[] _valueLens,
                                           java.lang.String[] _reverseKeys)
      • CompressingMetaIndexBuilder

        public CompressingMetaIndexBuilder​(IndexOnDisk _index,
                                           java.lang.String _structureName,
                                           java.lang.String[] _keyNames,
                                           int[] _valueLens,
                                           java.lang.String[] _reverseKeys)
    • Method Detail

      • writeData

        protected int writeData​(byte[] data)
                         throws java.io.IOException
        Specified by:
        writeData in class BaseMetaIndexBuilder
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Description copied from class: BaseMetaIndexBuilder
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class BaseMetaIndexBuilder
        Throws:
        java.io.IOException