blob: d45df4dc92b0989b54fa1b73bb10bb6baaf13c32 (
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 Vespa.ai. 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
|