-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
77 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
130 changes: 65 additions & 65 deletions
130
src/main/java/com/github/luben/zstd/ZstdFrameProgression.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,65 @@ | ||
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; | ||
} | ||
} | ||
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; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters