forked from iabudiab/ObjectiveRocks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRocksDBTableFactory.h
53 lines (38 loc) · 1.47 KB
/
RocksDBTableFactory.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
//
// RocksDBTableFactory.h
// ObjectiveRocks
//
// Created by Iska on 02/01/15.
// Copyright (c) 2015 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RocksDBBlockBasedTableOptions.h"
#if !(defined(ROCKSDB_LITE) && defined(TARGET_OS_IPHONE))
#import "RocksDBPlainTableOptions.h"
#import "RocksDBCuckooTableOptions.h"
#endif
NS_ASSUME_NONNULL_BEGIN
/** A factory for the TableFactory objects. */
@interface RocksDBTableFactory : NSObject
/**
Returns a BlockBased Table Factory object with thge given BlockBased table options.
This is the default SST table format in RocksDB.
@see RocksDBBlockBasedTableOptions
*/
+ (instancetype)blockBasedTableFactoryWithOptions:(void (^)(RocksDBBlockBasedTableOptions *options))options;
#if !(defined(ROCKSDB_LITE) && defined(TARGET_OS_IPHONE))
/**
Returns a Plain Table Factory object with thge given Plain table options.
This is a RocksDB’s SST file format optimized for low query latency on pure-memory or really low-latency media
@see RocksDBPlainTableOptions
*/
+ (instancetype)plainTableFactoryWithOptions:(void (^)(RocksDBPlainTableOptions *options))options;
/**
Returns a Cuckoo Table Factory object with thge given Cuckoo table options.
This is designed for applications that require fast point lookups but not fast range scans.
@see RocksDBCuckooTableOptions
*/
+ (instancetype)cuckooTableFactoryWithOptions:(void (^)(RocksDBCuckooTableOptions *options))options;
#endif
@end
NS_ASSUME_NONNULL_END