All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.luben.zstd.ZstdFrameProgression Maven / Gradle / Ivy

Go to download

JNI bindings for Zstd native library that provides fast and high compression lossless algorithm for Java and all JVM languages.

There is a newer version: 1.5.6-8
Show newest version
package com.github.luben.zstd;

public class ZstdFrameProgression {

    private long ingested;
    private long consumed;
    private long produced;
    private long flushed;
    private int currentJobID;
    private int nbActiveWorkers;

    public ZstdFrameProgression(long ingested, long consumed, long produced, long flushed, int currentJobID,
            int nbActiveWorkers) {
        this.ingested = ingested;
        this.consumed = consumed;
        this.produced = produced;
        this.flushed = flushed;
        this.currentJobID = currentJobID;
        this.nbActiveWorkers = nbActiveWorkers;
    }

    /**
     * The number of input bytes read and buffered.
     */
    public long getIngested() {
        return ingested;
    }

    /**
     * The number of input bytes actually compressed.
     * Note: ingested - consumed = amount of input data buffered internally, not yet compressed.
     */
    public long getConsumed() {
        return consumed;
    }

    /**
     * The number of compressed bytes generated and buffered.
     */
    public long getProduced() {
        return produced;
    }

    /**
     * The number of compressed bytes flushed.
     */
    public long getFlushed() {
        return flushed;
    }

    /**
     * The last started job number. Only applicable if multi-threading is enabled.
     */
    public int getCurrentJobID() {
        return currentJobID;
    }

    /**
     * The number of workers actively compressing. Only applicable if multi-threading is enabled.
     */
    public int getNbActiveWorkers() {
        return nbActiveWorkers;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy