mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
add missing annotations
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user