|
53 | 53 | import org.elasticsearch.test.ESTestCase; |
54 | 54 | import org.elasticsearch.test.index.IndexVersionUtils; |
55 | 55 | import org.elasticsearch.xcontent.XContentBuilder; |
56 | | -import org.hamcrest.Matcher; |
57 | 56 | import org.junit.AssumptionViolatedException; |
58 | 57 |
|
59 | 58 | import java.io.IOException; |
|
62 | 61 | import java.util.List; |
63 | 62 | import java.util.Map; |
64 | 63 | import java.util.Set; |
65 | | -import java.util.function.Function; |
66 | 64 |
|
67 | 65 | import static org.apache.lucene.codecs.lucene99.Lucene99HnswVectorsFormat.DEFAULT_BEAM_WIDTH; |
68 | 66 | import static org.apache.lucene.codecs.lucene99.Lucene99HnswVectorsFormat.DEFAULT_MAX_CONN; |
@@ -2349,26 +2347,6 @@ protected boolean supportsEmptyInputArray() { |
2349 | 2347 | return false; |
2350 | 2348 | } |
2351 | 2349 |
|
2352 | | - @Override |
2353 | | - protected BlockReaderSupport getSupportedReaders(MapperService mapper, String loaderFieldName) { |
2354 | | - return new BlockReaderSupport(true, true, mapper, loaderFieldName); |
2355 | | - } |
2356 | | - |
2357 | | - @Override |
2358 | | - protected Function<Object, Object> loadBlockExpected(BlockReaderSupport blockReaderSupport, boolean columnReader) { |
2359 | | - DenseVectorFieldType ft = (DenseVectorFieldType) blockReaderSupport.mapper().fieldType(blockReaderSupport.loaderFieldName()); |
2360 | | - if (ft.getElementType() != ElementType.FLOAT) { |
2361 | | - return null; |
2362 | | - } |
2363 | | - |
2364 | | - return Function.identity(); |
2365 | | - } |
2366 | | - |
2367 | | - @Override |
2368 | | - protected Matcher<?> blockItemMatcher(Object expected) { |
2369 | | - return equalTo(((Double) expected).floatValue()); |
2370 | | - } |
2371 | | - |
2372 | 2350 | private static class DenseVectorSyntheticSourceSupport implements SyntheticSourceSupport { |
2373 | 2351 | private final int dims = between(5, 1000); |
2374 | 2352 | private final ElementType elementType = randomFrom(ElementType.BYTE, ElementType.FLOAT, ElementType.BIT); |
|
0 commit comments