diff options
Diffstat (limited to 'eval/src/tests/ann/doc_vector_access.h')
-rw-r--r-- | eval/src/tests/ann/doc_vector_access.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/eval/src/tests/ann/doc_vector_access.h b/eval/src/tests/ann/doc_vector_access.h new file mode 100644 index 00000000000..c168279bc5e --- /dev/null +++ b/eval/src/tests/ann/doc_vector_access.h @@ -0,0 +1,11 @@ +// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +#pragma once +#include <vespa/vespalib/util/arrayref.h> + +template <typename FltType = float> +struct DocVectorAccess +{ + virtual vespalib::ConstArrayRef<FltType> get(uint32_t docid) const = 0; + virtual ~DocVectorAccess() {} +}; |