|
12 | 12 | import org.apache.lucene.backward_codecs.lucene912.Lucene912Codec;
|
13 | 13 | import org.apache.lucene.codecs.FilterCodec;
|
14 | 14 | import org.apache.lucene.codecs.StoredFieldsFormat;
|
15 |
| -import org.apache.lucene.codecs.lucene101.Lucene101Codec; |
16 |
| -import org.opensearch.index.codec.PerFieldMappingPostingFormatCodec; |
17 |
| -import org.opensearch.index.mapper.MapperService; |
18 | 15 |
|
19 | 16 | import java.util.Set;
|
20 | 17 | import java.util.function.Supplier;
|
@@ -97,42 +94,6 @@ public Lucene912QatCodec(Mode mode, int compressionLevel, Supplier<QatZipper.Mod
|
97 | 94 | this.storedFieldsFormat = new Lucene912QatStoredFieldsFormat(mode, compressionLevel, supplier);
|
98 | 95 | }
|
99 | 96 |
|
100 |
| - /** |
101 |
| - * Creates a new compression codec with the given compression level. We use lowercase letters when |
102 |
| - * registering the codec so that we remain consistent with the other compression codecs: default, |
103 |
| - * lucene_default, and best_compression. |
104 |
| - * |
105 |
| - * @param mode The compression codec (QAT_LZ4 or QAT_DEFLATE). |
106 |
| - * @param compressionLevel The compression level. |
107 |
| - * @param mapperService The mapper service. |
108 |
| - * @param logger The logger. |
109 |
| - */ |
110 |
| - public Lucene912QatCodec(Mode mode, int compressionLevel, MapperService mapperService, Logger logger) { |
111 |
| - super(mode.getCodec(), new PerFieldMappingPostingFormatCodec(Lucene101Codec.Mode.BEST_SPEED, mapperService, logger)); |
112 |
| - this.storedFieldsFormat = new Lucene912QatStoredFieldsFormat(mode, compressionLevel); |
113 |
| - } |
114 |
| - |
115 |
| - /** |
116 |
| - * Creates a new compression codec with the given compression level. We use lowercase letters when |
117 |
| - * registering the codec so that we remain consistent with the other compression codecs: default, |
118 |
| - * lucene_default, and best_compression. |
119 |
| - * |
120 |
| - * @param mode The compression codec (QAT_LZ4 or QAT_DEFLATE). |
121 |
| - * @param compressionLevel The compression level. |
122 |
| - * @param mapperService The mapper service. |
123 |
| - * @param logger The logger. |
124 |
| - * @param supplier supplier for QAT mode. |
125 |
| - */ |
126 |
| - public Lucene912QatCodec( |
127 |
| - Mode mode, |
128 |
| - int compressionLevel, |
129 |
| - MapperService mapperService, |
130 |
| - Logger logger, |
131 |
| - Supplier<QatZipper.Mode> supplier |
132 |
| - ) { |
133 |
| - super(mode.getCodec(), new PerFieldMappingPostingFormatCodec(Lucene101Codec.Mode.BEST_SPEED, mapperService, logger)); |
134 |
| - this.storedFieldsFormat = new Lucene912QatStoredFieldsFormat(mode, compressionLevel, supplier); |
135 |
| - } |
136 | 97 |
|
137 | 98 | @Override
|
138 | 99 | public StoredFieldsFormat storedFieldsFormat() {
|
|
0 commit comments