aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/attribute/imported_attribute_vector_explorer.h
blob: ce8854b03d2d1a6cde5309fa4f8618fefdb7b2e1 (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
26
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/vespalib/net/http/state_explorer.h>

namespace search::attribute { class ImportedAttributeVector; }

namespace proton {

/**
 * Class used to explore the state of an imported attribute vector.
 */
class ImportedAttributeVectorExplorer : public vespalib::StateExplorer
{
private:
    std::shared_ptr<search::attribute::ImportedAttributeVector> _attr;

public:
    ImportedAttributeVectorExplorer(std::shared_ptr<search::attribute::ImportedAttributeVector> attr);

    // Implements vespalib::StateExplorer
    void get_state(const vespalib::slime::Inserter &inserter, bool full) const override;
};

}