Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

lz4 streaming format 1.4 #21

Closed
Closed

Description

@jdamick

It doesn't look like the LZ4BlockOutputStream / LZ4BlockInputStream support the streaming format described here: http://fastcompression.blogspot.com/2013/04/lz4-streaming-format-final.html

Is this on the roadmap or is there a different set of streams I need to use for compatibility?

thanks

Activity

  1. jpountz commented on Aug 20, 2013

    @jpountz
    Collaborator

    Hi Jeffrey. Your assumptions are correct, I implemented LZ4Block(In|Out)putStream based on https://github.com/exalead/fastlzlib before the lz4 streaming format went out.

    This feature is definitely on the roadmap but it will require some time since there are lots of options to support (independence of blocks, checksums, preset dictionaries).

  2. stevenschlansker commented on Jun 3, 2014

    @stevenschlansker
    Contributor

    +1!

  3. bfg commented on Jul 11, 2014

    @bfg

    +1

  4. stevenschlansker commented on Dec 1, 2014

    @stevenschlansker
    Contributor

    Any possibility of this getting some love? We're looking to use LZ4 even more but not being able to interchange with other implementation sucks.

  5. jpountz commented on Dec 3, 2014

    @jpountz
    Collaborator

    This is a big task and I don't have much time for this project these days, but I could help if someone wants to try to implement it...

  6. Cyan4973 commented on Dec 4, 2014

    @Cyan4973
    Member

    Not sure if it is applicable within current context

    but if you plan on using a wrapper to C functions to achieve this objective,
    then there is a new library within lz4, called lz4frame,
    which does all the work of adding / decoding header information automatically.
    It also takes care of streaming behavior, when requested, automatically.

    Of course, if you want to rebuild it in pure Java, then this library doesn't help.
    I would then recommend following the example of Takayuki Matsuaka's lz4mt :
    https://github.com/t-mat/lz4mt

    because it's clean, and very easy to understand
    (although limited to independent block modes).

    Regards

  7. phraktle commented on Apr 5, 2015

    @phraktle

    +1 for this.

    Btw, there's a basic implementation already available in Apache Kafka, see:
    https://github.com/apache/kafka/tree/0.8.2/clients/src/main/java/org/apache/kafka/common/message

  8. drcrallen commented on Apr 10, 2015

    @drcrallen
    Contributor

    It seems to have moved in trunk:
    https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/record/KafkaLZ4BlockOutputStream.java

    Also, it says it supports "A partial implementation of the v1.4.1 LZ4 Frame format." rather than full 1.5 support, which is concerning.

  9. dpkp commented on May 3, 2016

    @dpkp

    The Kafka implementation is a bit broken, but I've done some work to fix it and update for 1.5.1 lz4 frame spec. See https://cwiki.apache.org/confluence/display/KAFKA/KIP-57+-+Interoperable+LZ4+Framing and apache/kafka#1212

  10. odaira commented on Sep 17, 2018

    @odaira
    Member

    Thanks all, and the LZ4 Frame format has been supported by lz4-java since 1.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions