aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/data/slime/external_data_value_factory.h
blob: 68b53205fbc4441ab860c69943c65b6914b24930 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include "value_factory.h"
#include <memory>

namespace vespalib::slime {

struct ExternalMemory;

/**
 * Value factory for data values using external memory.
 **/
struct ExternalDataValueFactory : public ValueFactory {
    mutable std::unique_ptr<ExternalMemory> input;
    ExternalDataValueFactory(std::unique_ptr<ExternalMemory> in) : input(std::move(in)) {}
    ~ExternalDataValueFactory() override;
    Value *create(Stash &stash) const override;
};

} // namespace vespalib::slime