Skip to content
Snippets Groups Projects
Commit b9186389 authored by Vojtech Moravec's avatar Vojtech Moravec
Browse files

Add compression library.

parent d289702c
No related branches found
No related tags found
No related merge requests found
...@@ -117,5 +117,10 @@ ...@@ -117,5 +117,10 @@
<artifactId>commons-cli</artifactId> <artifactId>commons-cli</artifactId>
<version>${commons-cli.version}</version> <version>${commons-cli.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.azgra</groupId>
<artifactId>DataCompressor</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies> </dependencies>
</project> </project>
package bdv.server;
public class CustomCompressionParameters {
private final boolean dumpRequestData;
private final String dumpFile;
private final String trainFile;
private final int bitTarget;
private final int diffThreshold;
public String getTrainFile() {
return trainFile;
}
public int getBitTarget() {
return bitTarget;
}
private final boolean enableRequestCompression;
private final boolean renderDifference;
public CustomCompressionParameters(final String dumpFile,
final String trainFile,
final int bitTarget,
final boolean enableRequestCompression,
final boolean renderDifference,
final int diffThreshold) {
this.dumpFile = dumpFile;
this.trainFile = trainFile;
this.bitTarget=bitTarget;
this.dumpRequestData = !this.dumpFile.isEmpty();
this.enableRequestCompression = enableRequestCompression;
this.renderDifference = renderDifference;
this.diffThreshold = diffThreshold;
}
public boolean shouldDumpRequestData() {
return dumpRequestData;
}
public String getDumpFile() {
return dumpFile;
}
public boolean shouldCompressData() {
return enableRequestCompression;
}
public boolean renderDifference() {
return renderDifference;
}
public int getDiffThreshold() {
return diffThreshold;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment