add missing annotations

This commit is contained in:
Jonathan Shook
2023-10-26 14:05:12 -05:00
parent a0851cef77
commit 23a7440262
2 changed files with 4 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ package io.nosqlbench.virtdata.library.ivecfvec;
import io.nosqlbench.api.content.Content;
import io.nosqlbench.api.content.NBIO;
import io.nosqlbench.virtdata.api.annotations.ThreadSafeMapper;
import java.io.IOException;
import java.nio.ByteBuffer;
@@ -31,6 +32,7 @@ import java.util.function.LongFunction;
/**
* Reads ivec files with random access, using the input to specify the record number.
*/
@ThreadSafeMapper
public class FVecReader implements LongFunction<float[]> {
private final MappedByteBuffer bb;

View File

@@ -20,6 +20,7 @@ import io.nosqlbench.api.config.standard.ConfigModel;
import io.nosqlbench.api.content.Content;
import io.nosqlbench.api.content.NBIO;
import io.nosqlbench.virtdata.api.annotations.Example;
import io.nosqlbench.virtdata.api.annotations.ThreadSafeMapper;
import java.io.IOException;
import java.io.RandomAccessFile;
@@ -37,6 +38,7 @@ import java.util.function.LongToIntFunction;
* While it is possible to specify different dimensioned vectors per record, this is not supported, since this
* function honors the pure-function behavior of other NB binding functions. This requires uniform record structure for random access.
*/
@ThreadSafeMapper
public class IVecReader implements LongFunction<int[]> {
private final MappedByteBuffer bb;