|
14 | 14 | import jdk.incubator.vector.LongVector; |
15 | 15 | import jdk.incubator.vector.ShortVector; |
16 | 16 | import jdk.incubator.vector.VectorOperators; |
17 | | -import jdk.incubator.vector.VectorSpecies; |
18 | 17 |
|
19 | 18 | import org.apache.lucene.index.VectorSimilarityFunction; |
20 | 19 | import org.apache.lucene.store.IndexInput; |
|
31 | 30 | /** Panamized scorer for quantized vectors stored as a {@link MemorySegment}. */ |
32 | 31 | final class MSBitToInt4ESNextOSQVectorsScorer extends MemorySegmentESNextOSQVectorsScorer.MemorySegmentScorer { |
33 | 32 |
|
34 | | - private static final int BULK_SIZE = MemorySegmentESNextOSQVectorsScorer.BULK_SIZE; |
35 | | - private static final float FOUR_BIT_SCALE = 1f / ((1 << 4) - 1); |
36 | | - |
37 | | - private static final VectorSpecies<Integer> INT_SPECIES_128 = IntVector.SPECIES_128; |
38 | | - |
39 | | - private static final VectorSpecies<Long> LONG_SPECIES_128 = LongVector.SPECIES_128; |
40 | | - private static final VectorSpecies<Long> LONG_SPECIES_256 = LongVector.SPECIES_256; |
41 | | - |
42 | | - private static final VectorSpecies<Byte> BYTE_SPECIES_128 = ByteVector.SPECIES_128; |
43 | | - private static final VectorSpecies<Byte> BYTE_SPECIES_256 = ByteVector.SPECIES_256; |
44 | | - |
45 | | - private static final VectorSpecies<Short> SHORT_SPECIES_128 = ShortVector.SPECIES_128; |
46 | | - private static final VectorSpecies<Short> SHORT_SPECIES_256 = ShortVector.SPECIES_256; |
47 | | - |
48 | | - private static final VectorSpecies<Float> FLOAT_SPECIES_128 = FloatVector.SPECIES_128; |
49 | | - private static final VectorSpecies<Float> FLOAT_SPECIES_256 = FloatVector.SPECIES_256; |
50 | | - |
51 | 33 | MSBitToInt4ESNextOSQVectorsScorer(IndexInput in, int dimensions, int dataLength, MemorySegment memorySegment) { |
52 | 34 | super(in, dimensions, dataLength, memorySegment); |
53 | 35 | } |
|
0 commit comments