case 1:
return new FastDecompressionCompressingCodec(chunkSize, withSegmentSuffix);
case 2:
return new HighCompressionCompressingCodec(chunkSize, withSegmentSuffix);
case 3:
return new DummyCompressingCodec(chunkSize, withSegmentSuffix);
default:
throw new AssertionError();
}
}