Search in sources :

Example 1 with Compressor

use of com.yahoo.compress.Compressor in project vespa by vespa-engine.

the class BaseStructDataType method setCompressionConfig.

/**
 * Set the config to the compressor used to compress data of this type
 */
public void setCompressionConfig(CompressionConfig config) {
    CompressionType type = config.type;
    compressor = new Compressor(type, config.compressionLevel, config.thresholdFactor(), (int) config.minsize);
}
Also used : Compressor(com.yahoo.compress.Compressor) CompressionType(com.yahoo.compress.CompressionType)

Aggregations

CompressionType (com.yahoo.compress.CompressionType)1 Compressor (com.yahoo.compress.Compressor)1