Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
87 lines (80 loc) · 1.87 KB

File metadata and controls

87 lines (80 loc) · 1.87 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
/*-
* #%L
* LmdbJava
* %%
* Copyright (C) 2016 - 2019 The LmdbJava Open Source Project
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package org.lmdbjava;
/**
* Flags for use when opening the {@link Env}.
*/
public enum EnvFlags implements MaskedFlag {
/**
* Mmap at a fixed address (experimental).
*/
/**
* Mmap at a fixed address (experimental).
*/
MDB_FIXEDMAP(0x01),
/**
* No environment directory.
*/
MDB_NOSUBDIR(0x4000),
/**
* Don't fsync after commit.
*/
MDB_NOSYNC(0x1_0000),
/**
* Read only.
*/
MDB_RDONLY_ENV(0x2_0000),
/**
* Don't fsync metapage after commit.
*/
MDB_NOMETASYNC(0x4_0000),
/**
* Use writable mmap.
*/
MDB_WRITEMAP(0x8_0000),
/**
* Use asynchronous msync when {@link #MDB_WRITEMAP} is used.
*/
MDB_MAPASYNC(0x10_0000),
/**
* Tie reader locktable slots to {@link Txn} objects instead of to threads.
*/
MDB_NOTLS(0x20_0000),
/**
* Don't do any locking, caller must manage their own locks.
*/
MDB_NOLOCK(0x40_0000),
/**
* Don't do readahead (no effect on Windows).
*/
MDB_NORDAHEAD(0x80_0000),
/**
* Don't initialize malloc'd memory before writing to datafile.
*/
MDB_NOMEMINIT(0x100_0000);
private final int mask;
EnvFlags(final int mask) {
this.mask = mask;
}
@Override
public int getMask() {
return mask;
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.