blob: 0d16bdfc4f46c0607056e2c9d3271923022bbe0b (
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 "bufferwriter.h"
namespace vespalib { class DataBuffer; }
namespace search {
/**
* Class to write to a data buffer, used during migration of
* attribute vector saver implementation.
*/
class DataBufferWriter : public BufferWriter
{
vespalib::DataBuffer& _data_buffer;
public:
DataBufferWriter(vespalib::DataBuffer& data_buffer);
~DataBufferWriter();
void flush() override;
};
}
|