aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/attribute/raw_buffer_store_writer.h
blob: fc23dfe0cad796c54b12af68451d8f39101fb76f (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
25
26
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/vespalib/datastore/entryref.h>

namespace search { class BufferWriter; }

namespace search::attribute {

class RawBufferStore;

/**
 * Class for writing raw values from a raw buffer store to a BufferWriter.
 */
class RawBufferStoreWriter
{
    const RawBufferStore& _store;
    BufferWriter&         _writer;
public:
    RawBufferStoreWriter(const RawBufferStore& store, BufferWriter& writer);
    ~RawBufferStoreWriter();
    void write(vespalib::datastore::EntryRef ref);
};

}