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

com.xxdb.compression.EncoderFactory Maven / Gradle / Ivy

There is a newer version: 3.00.2.2
Show newest version
package com.xxdb.compression;

public class EncoderFactory {
    private EncoderFactory() {}

    public static Encoder get(int method){
        if(method == 1)
            return new LZ4Encoder();
        else if(method == 2)
            return new DeltaOfDeltaEncoder();
        else
            throw new RuntimeException("Invalid compression method " + method);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy