Interface Compression

  • All Known Implementing Classes:
    LZ4Compression

    public interface Compression
    This interface provides a default list of support compression algorithms and some utility functions. It is mainly used by intermediate stored files in ExternalSort and sort/index utilities in org.apache.jackrabbit.oak.index.indexer.document.flatfile. Other compression algorithms can be supported by implementing the methods.
    • Method Detail

      • getInputStream

        java.io.InputStream getInputStream​(java.io.InputStream in)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • getOutputStream

        java.io.OutputStream getOutputStream​(java.io.OutputStream out)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addSuffix

        java.lang.String addSuffix​(java.lang.String filename)