-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.go
49 lines (34 loc) · 792 Bytes
/
config.go
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
package db
// KB represents kilobyte: 1024 bytes
const KB = 1024
// MB represents Megabyte: 1024 KB
const MB = 1024 * KB
// BlockSize is size of each data block: 1 KB
const BlockSize = 4 * KB
// MemTableSize is size limit of each memtable: 16 KB
const MemTableSize = 16 * KB
// KeySize is max size for key
const KeySize = 255
// EntrySize is max size for entire entry
const EntrySize = KB
// MaxAttributes is max amount of Attributes per entry
const MaxAttributes = 10
const timestampSize = 8
const filenameLength = 8
const compactThreshold = 4
const multiplier = MB
const headerSize = 32
const numWorkers = 50
const oracleSize = 10000
const dirPerm = 0700
const filePerm = 0600
// Supported value types
const (
Bool uint8 = iota
Int
Uint
Float
String
Bytes
Tombstone
)