public static CodecType fromId(int id) {
        for (CodecType t : values()) {
            if (t.id == id) {
                return t;
            }
        }
        throw new RuntimeException("Illegal codec id: " + id);
    }
This codec is private used only
indexr-vlt-segment/src/main/java/io/indexr/vlt/codec/CodecType.java