blob: 6dfb38423aa8827fbea24bc2bf6299ae0998ff74 (
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
31
32
33
34
35
36
37
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <memory>
#include <vespa/vespalib/stllike/string.h>
namespace document {
class Bucket;
class Document;
class DocumentUpdate;
class DocumentId;
}
namespace search::bmcluster {
class BucketInfoQueue;
class PendingTracker;
/*
* Interface class for benchmark feed handler.
*/
class IBmFeedHandler
{
public:
virtual ~IBmFeedHandler() = default;
virtual void put(const document::Bucket& bucket, std::unique_ptr<document::Document> document, uint64_t timestamp, PendingTracker& tracker) = 0;
virtual void update(const document::Bucket& bucket, std::unique_ptr<document::DocumentUpdate> document_update, uint64_t timestamp, PendingTracker& tracker) = 0;
virtual void remove(const document::Bucket& bucket, const document::DocumentId& document_id, uint64_t timestamp, PendingTracker& tracker) = 0;
virtual void get(const document::Bucket& bucket, vespalib::stringref field_set_string, const document::DocumentId& document_id, PendingTracker& tracker) = 0;
virtual void attach_bucket_info_queue(PendingTracker& tracker) = 0;
virtual uint32_t get_error_count() const = 0;
virtual const vespalib::string &get_name() const = 0;
virtual bool manages_timestamp() const = 0;
};
}
|