blob: d81ca6f4362751949ad79935c8744a09951b88de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "multi_value_mapping_read_view.h"
#include <vespa/searchcommon/attribute/i_multi_value_read_view.h>
namespace search::attribute {
/**
* Read view for the raw data stored in a multi-value attribute.
* @tparam MultiValueType The multi-value type of the raw data to access.
*/
template <typename MultiValueType>
class RawMultiValueReadView : public IMultiValueReadView<MultiValueType>
{
MultiValueMappingReadView<MultiValueType> _mv_mapping_read_view;
public:
RawMultiValueReadView(MultiValueMappingReadView<MultiValueType> mv_mapping_read_view);
~RawMultiValueReadView() override;
vespalib::ConstArrayRef<MultiValueType> get_values(uint32_t docid) const override;
};
}
|