aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/feedoperation/createbucketoperation.h
blob: c07b1ce2c8fca5aa567d9f5b38a0815ab438e8d3 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include "feedoperation.h"
#include <vespa/document/bucket/bucketid.h>

namespace proton {

class CreateBucketOperation : public FeedOperation
{
    document::BucketId   _bucketId;

public:
    CreateBucketOperation();
    CreateBucketOperation(const document::BucketId &bucketId);
    ~CreateBucketOperation() override = default;
    const document::BucketId &getBucketId() const { return _bucketId; }
    void serialize(vespalib::nbostream &os) const override;
    void deserialize(vespalib::nbostream &is, const document::DocumentTypeRepo &repo) override;
    vespalib::string toString() const override;
};

} // namespace proton