blob: 3ed877a0d7a93701178787f2b10fa72d01fce0de (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/vespalib/stllike/string.h>
namespace searchcorespi {
/**
* Class with stats for what have been flushed.
*/
class FlushStats
{
private:
vespalib::string _path; // path to data flushed
size_t _pathElementsToLog;
public:
FlushStats();
void setPath(const vespalib::string & path) { _path = path; }
void setPathElementsToLog(size_t numElems) { _pathElementsToLog = numElems; }
const vespalib::string & getPath() const { return _path; }
size_t getPathElementsToLog() const { return _pathElementsToLog; }
};
} // namespace searchcorespi
|