forked from iabudiab/ObjectiveRocks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRocksDBColumnFamilyMetadata.h
113 lines (88 loc) · 2.38 KB
/
RocksDBColumnFamilyMetadata.h
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
//
// RocksDBColumnFamilyMetaData.h
// ObjectiveRocks
//
// Created by Iska on 09/01/15.
// Copyright (c) 2015 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class RocksDBColumnFamilyMetaData;
@class RocksDBLevelFileMetaData;
@class RocksDBSstFileMetaData;
/**
The metadata that describes a Column Family.
*/
@interface RocksDBColumnFamilyMetaData : NSObject
/**
@brief The size of this Column Family in bytes, which is equal to the sum of the file size of its "levels".
*/
@property (nonatomic, readonly) uint64_t size;
/**
@brief The number of files in this Clumn Family.
*/
@property (nonatomic, readonly) size_t fileCount;
/**
@brief The name of the Column Family.
*/
@property (nonatomic, strong, readonly) NSString *name;
/**
@brief The metadata of all levels in this Column Family.
*/
@property (nonatomic, strong, readonly) NSArray<RocksDBLevelFileMetaData *> *levels;
@end
/**
The metadata that describes a level.
*/
@interface RocksDBLevelFileMetaData : NSObject
/**
@brief The level which this meta data describes.
*/
@property (nonatomic, readonly) int level;
/**
@brief The size of this level in bytes, which is equal to the sum of the file size of its "files".
*/
@property (nonatomic, readonly) uint64_t size;
/**
@brief The metadata of all sst files in this level.
*/
@property (nonatomic, strong, readonly) NSArray<RocksDBSstFileMetaData *> *files;
@end
/**
The metadata that describes a SST file.
*/
@interface RocksDBSstFileMetaData : NSObject
/**
@brief File size in bytes.
*/
@property (nonatomic, readonly) uint64_t size;
/**
@brief The name of the file.
*/
@property (nonatomic, strong, readonly) NSString *name;
/**
@brief The full path where the file locates.
*/
@property (nonatomic, strong, readonly) NSString *dbPath;
/**
@brief Smallest sequence number in file.
*/
@property (nonatomic, readonly) uint64_t smallestSeqno;
/**
@brief Largest sequence number in file.
*/
@property (nonatomic, readonly) uint64_t largestSeqno;
/**
@brief Smallest user defined key in the file.
*/
@property (nonatomic, strong, readonly) NSString *smallestKey;
/**
@brief Largest user defined key in the file.
*/
@property (nonatomic, strong, readonly) NSString *largestKey;
/**
@brief `true` if the file is currently being compacted.
*/
@property (nonatomic, readonly) bool beingCompacted;
@end
NS_ASSUME_NONNULL_END