aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/attribute/attributememoryfilebufferwriter.h
blob: ac57a3cb5ba277686cd4b8541e9ebd520dcf0288 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include "attributefilebufferwriter.h"

namespace search
{

/*
 * BufferWriter implementation that passes full buffers on to
 * memory variant of IAttributeFileWriter.
 */
class AttributeMemoryFileBufferWriter : public AttributeFileBufferWriter
{
public:
    AttributeMemoryFileBufferWriter(IAttributeFileWriter &memoryFileWriter);

    virtual ~AttributeMemoryFileBufferWriter();

    virtual void onFlush(size_t nowSize) override;
};


} // namespace search