@@ -75,7 +75,7 @@ public static ForwardIndexConfig getDefault() {
7575 }
7676
7777 public static ForwardIndexConfig getDisabled () {
78- return new ForwardIndexConfig (true , null , null , null , null , null , null , null , null );
78+ return new ForwardIndexConfig (true , ( CompressionCodecSpec ) null , null , null , null , null , null );
7979 }
8080
8181 @ JsonProperty ("compressionCodec" )
@@ -104,6 +104,20 @@ public ForwardIndexConfig(@Nullable Boolean disabled, @Nullable CompressionCodec
104104 rawIndexWriterVersion , targetMaxChunkSize , targetDocsPerChunk , configs );
105105 }
106106
107+ /**
108+ * @deprecated Kept for binary compatibility with callers still constructing the config via legacy compression types.
109+ */
110+ @ Deprecated
111+ public ForwardIndexConfig (@ Nullable Boolean disabled , @ Nullable CompressionCodec compressionCodec ,
112+ @ Nullable ChunkCompressionType chunkCompressionType , @ Nullable DictIdCompressionType dictIdCompressionType ,
113+ @ Nullable Boolean deriveNumDocsPerChunk , @ Nullable Integer rawIndexWriterVersion ,
114+ @ Nullable String targetMaxChunkSize , @ Nullable Integer targetDocsPerChunk ,
115+ @ Nullable Map <String , Object > configs ) {
116+ this (disabled , getActualCompressionCodecSpec (CompressionCodecSpec .fromCompressionCodec (compressionCodec ),
117+ chunkCompressionType , dictIdCompressionType ), deriveNumDocsPerChunk , rawIndexWriterVersion ,
118+ targetMaxChunkSize , targetDocsPerChunk , configs );
119+ }
120+
107121 private ForwardIndexConfig (@ Nullable Boolean disabled , @ Nullable CompressionCodecSpec compressionCodecSpec ,
108122 @ Nullable Boolean deriveNumDocsPerChunk , @ Nullable Integer rawIndexWriterVersion ,
109123 @ Nullable String targetMaxChunkSize , @ Nullable Integer targetDocsPerChunk ,
0 commit comments