aboutsummaryrefslogtreecommitdiffstats
path: root/persistence/src/vespa/persistence/spi/documentselection.h
blob: 47f195c536cee40a6b0b1adcd7e3e4762d938165 (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
27
28
29
30
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
/**
 * \class storage::spi::DocumentSelection
 * \ingroup spi
 *
 * \brief
 */

#pragma once

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

namespace document { class Document; }
namespace storage::spi {

class DocumentSelection
{
    vespalib::string _documentSelection;
 public:
    explicit DocumentSelection(const vespalib::string& docSel)
        : _documentSelection(docSel) {}

    bool match(const document::Document&) const { return true; }

    const vespalib::string& getDocumentSelection() const {
        return _documentSelection;
    }
};

}