forked from iabudiab/ObjectiveRocks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRocksDBWriteOptions.h
50 lines (40 loc) · 1.49 KB
/
RocksDBWriteOptions.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
//
// RocksDBWriteOptions.h
// ObjectiveRocks
//
// Created by Iska on 20/11/14.
// Copyright (c) 2014 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
/** Options that control write operations. */
@interface RocksDBWriteOptions : NSObject <NSCopying>
/** @brief If true, the write will be flushed from the operating system
buffer cache before the write is considered complete.
Default: false
*/
@property (nonatomic, assign) BOOL syncWrites;
/** @brief If true, writes will not first go to the write ahead log, and
the write may got lost after a crash.
*/
@property (nonatomic, assign) BOOL disableWriteAheadLog;
/** @brief If true and if user is trying to write to column families that don't
exist then the write will be ignored.
Default: false
*/
@property (nonatomic, assign) BOOL ignoreMissingColumnFamilies;
/** @brief If true and we need to wait or sleep for the write request, fails immediately
with [Status.Code.Incomplete].
Default: false
*/
@property (nonatomic, assign) BOOL noSlowdown;
/** @brief If true, this write request is of lower priority if compaction is
behind. In this case that, [.noSlowdown] == true, the request
will be cancelled immediately with [Status.Code.Incomplete] returned.
Otherwise, it will be slowed down. The slowdown value is determined by
RocksDB to guarantee it introduces minimum impacts to high priority writes.
Default: false
*/
@property (nonatomic, assign) BOOL lowPriority;
@end
NS_ASSUME_NONNULL_END