aboutsummaryrefslogtreecommitdiffstats
path: root/searchsummary/src/vespa/searchsummary/docsummary/i_string_field_converter.h
blob: 805b5cf3508c923a01907f8c3f8f50cfd3669a9b (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
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/vespalib/stllike/string.h>

namespace document { class StringFieldValue; }
namespace vespalib::slime { struct Inserter; }

namespace search::docsummary {

/**
 * Interface class for inserting a dynamic string.
 */
class IStringFieldConverter
{
public:
    virtual ~IStringFieldConverter() = default;
    virtual void convert(const document::StringFieldValue &input, vespalib::slime::Inserter& inserter) = 0;
    virtual bool render_weighted_set_as_array() const = 0;
};

}