aboutsummaryrefslogtreecommitdiffstats
path: root/searchsummary/src/vespa/searchsummary/docsummary/idocsumenvironment.h
blob: 26d3bfe3c5ce626709c283490a17a7a2ea3656b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/searchlib/attribute/iattributemanager.h>

namespace juniper { class Juniper; }
namespace search::docsummary {

/**
 * Abstract view of information available to rewriters for generating docsum fields.
 **/
class IDocsumEnvironment {
public:
    virtual const search::IAttributeManager * getAttributeManager() const = 0;
    virtual const juniper::Juniper * getJuniper() const = 0;
    virtual ~IDocsumEnvironment() = default;
};

}