Module org.elasticsearch.server
Interface DenseVectorBlockLoaderProcessor<B extends BlockLoader.Builder>
- Type Parameters:
B- The type of builder to append results to
- All Known Implementing Classes:
DenseVectorBlockLoaderProcessor.DenseVectorLoaderProcessor,DenseVectorBlockLoaderProcessor.DenseVectorSimilarityProcessor
public interface DenseVectorBlockLoaderProcessor<B extends BlockLoader.Builder>
Processes vector values from doc values and appends them to a builder.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classProcessor that appends raw float vectors to a FloatBuilder as multi values.static classProcessor that calculates similarity scores and appends them to a DoubleBuilder. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidappendNull(B builder) Appends a null value to the builder.createBuilder(BlockLoader.BlockFactory factory, int expectedCount, int dimensions) Creates a builder for the given expected count.name()voidProcess a byte vector and append the result to the builder.voidProcess a float vector and append the result to the builder.
-
Method Details
-
createBuilder
Creates a builder for the given expected count.- Parameters:
factory- the block factoryexpectedCount- the expected number of valuesdimensions- the vector dimensions- Returns:
- the builder
-
process
Process a float vector and append the result to the builder.- Throws:
IOException
-
process
Process a byte vector and append the result to the builder.- Throws:
IOException
-
appendNull
Appends a null value to the builder. -
name
String name()
-