Module org.elasticsearch.server
Class SyntheticVectorsPatchFieldLoader
java.lang.Object
org.elasticsearch.index.mapper.vectors.SyntheticVectorsPatchFieldLoader
- All Implemented Interfaces:
SourceLoader.SyntheticVectorsLoader
public class SyntheticVectorsPatchFieldLoader
extends Object
implements SourceLoader.SyntheticVectorsLoader
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.SourceLoader.SyntheticVectorsLoader
SourceLoader.SyntheticVectorsLoader.Leaf -
Constructor Summary
ConstructorsConstructorDescriptionSyntheticVectorsPatchFieldLoader(SourceLoader.SyntheticFieldLoader syntheticLoader, CheckedSupplier<Object, IOException> copyObject) -
Method Summary
Modifier and TypeMethodDescriptionleaf(org.apache.lucene.index.LeafReaderContext context) Returns a leaf loader if the provided context contains patches for the specified field; returns null otherwise.
-
Constructor Details
-
SyntheticVectorsPatchFieldLoader
public SyntheticVectorsPatchFieldLoader(SourceLoader.SyntheticFieldLoader syntheticLoader, CheckedSupplier<Object, IOException> copyObject)
-
-
Method Details
-
leaf
public SourceLoader.SyntheticVectorsLoader.Leaf leaf(org.apache.lucene.index.LeafReaderContext context) throws IOException Description copied from interface:SourceLoader.SyntheticVectorsLoaderReturns a leaf loader if the provided context contains patches for the specified field; returns null otherwise.- Specified by:
leafin interfaceSourceLoader.SyntheticVectorsLoader- Throws:
IOException
-