We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5529c39 commit 8506cdeCopy full SHA for 8506cde
src/main/java/com/example/MyMap.java
@@ -7,7 +7,6 @@
7
import javax.annotation.PreDestroy;
8
9
import net.openhft.chronicle.map.ChronicleMap;
10
-import net.openhft.chronicle.map.ChronicleMapBuilder;
11
12
public class MyMap
13
{
@@ -33,9 +32,9 @@ protected MyMap(String path, String filename)
33
32
@PostConstruct
34
protected void initialize() throws IOException
35
36
- chronicle = ChronicleMapBuilder.of(String.class, String.class)
37
- .averageKeySize(AVERAGE_KEY_AND_VALUE.getBytes().length)
38
- .averageValueSize(AVERAGE_KEY_AND_VALUE.getBytes().length)
+ chronicle = ChronicleMap.of(String.class, String.class)
+ .averageKey(AVERAGE_KEY_AND_VALUE)
+ .averageValue(AVERAGE_KEY_AND_VALUE)
39
.entries(MAX_SIZE)
40
.createPersistedTo(file);
41
}
0 commit comments