Skip to content

Commit 11e4480

Browse files
authored
Minor access modifier adjustment to a couple of lucene90 backward compat types (#14695)
This commit makes a minor adjustment to a couple of lucene90 backward compat types to avoid duplicating them for older code.
1 parent 3dad852 commit 11e4480

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene90/blocktree/CompressionAlgorithm.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,24 @@
2121
import org.apache.lucene.util.compress.LowercaseAsciiCompression;
2222

2323
/** Compression algorithm used for suffixes of a block of terms. */
24-
enum CompressionAlgorithm {
24+
public enum CompressionAlgorithm {
25+
/** No compression. */
2526
NO_COMPRESSION(0x00) {
2627

2728
@Override
2829
void read(DataInput in, byte[] out, int len) throws IOException {
2930
in.readBytes(out, 0, len);
3031
}
3132
},
32-
33+
/** Lowercase Ascii compression. */
3334
LOWERCASE_ASCII(0x01) {
3435

3536
@Override
3637
void read(DataInput in, byte[] out, int len) throws IOException {
3738
LowercaseAsciiCompression.decompress(in, out, len);
3839
}
3940
},
40-
41+
/** LZ4 compression. */
4142
LZ4(0x02) {
4243

4344
@Override
@@ -62,6 +63,7 @@ static final CompressionAlgorithm byCode(int code) {
6263
return BY_CODE[code];
6364
}
6465

66+
/** Compression code. */
6567
public final int code;
6668

6769
private CompressionAlgorithm(int code) {

lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene90/blocktree/Lucene90BlockTreeTermsReader.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ public final class Lucene90BlockTreeTermsReader extends FieldsProducer {
7575
static final int OUTPUT_FLAG_HAS_TERMS = 0x2;
7676

7777
/** Extension of terms file */
78-
static final String TERMS_EXTENSION = "tim";
78+
public static final String TERMS_EXTENSION = "tim";
7979

80-
static final String TERMS_CODEC_NAME = "BlockTreeTermsDict";
80+
/** Extension of terms codec name */
81+
public static final String TERMS_CODEC_NAME = "BlockTreeTermsDict";
8182

8283
/** Initial terms format. */
8384
public static final int VERSION_START = 0;
@@ -94,14 +95,16 @@ public final class Lucene90BlockTreeTermsReader extends FieldsProducer {
9495
public static final int VERSION_CURRENT = VERSION_FST_CONTINUOUS_ARCS;
9596

9697
/** Extension of terms index file */
97-
static final String TERMS_INDEX_EXTENSION = "tip";
98+
public static final String TERMS_INDEX_EXTENSION = "tip";
9899

99-
static final String TERMS_INDEX_CODEC_NAME = "BlockTreeTermsIndex";
100+
/** Extension of terms index codec name */
101+
public static final String TERMS_INDEX_CODEC_NAME = "BlockTreeTermsIndex";
100102

101103
/** Extension of terms meta file */
102-
static final String TERMS_META_EXTENSION = "tmd";
104+
public static final String TERMS_META_EXTENSION = "tmd";
103105

104-
static final String TERMS_META_CODEC_NAME = "BlockTreeTermsMeta";
106+
/** Extension of terms meta codec name */
107+
public static final String TERMS_META_CODEC_NAME = "BlockTreeTermsMeta";
105108

106109
// Open input to the main terms dict file (_X.tib)
107110
final IndexInput termsIn;

0 commit comments

Comments
 (0)