Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

26
LINES

< > BotCompany Repo | #1004011 // Test Chronicle Map

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Uses 1400K of libraries. Click here for Pure Java version (45L/1K/2K).

1  
!752
2  
3  
lib 1004010 // Chronicle Map
4  
lib 1004012 // Chronicle Wire
5  
lib 1004013 // Chronicle Bytes
6  
lib 1004014 // Chronicle Core
7  
lib 1004015 // slf4j simple
8  
lib 1004016 // slf4j api
9  
10  
import net.openhft.chronicle.map.*;
11  
12  
sinterface PostalCodeRange {
13  
    int minCode();
14  
    void minCode(int minCode);
15  
16  
    int maxCode();
17  
    void maxCode(int maxCode);
18  
}
19  
20  
p {
21  
  ChronicleMap<CharSequence, PostalCodeRange> cityPostalCodes = ChronicleMapBuilder
22  
    .of(CharSequence.class, PostalCodeRange.class)
23  
    .averageKey("Amsterdam")
24  
    .entries(50_000)
25  
    .create();
26  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004011
Snippet name: Test Chronicle Map
Eternal ID of this version: #1004011/1
Text MD5: a6229e83f5520f426946aeb2c0e64522
Transpilation MD5: 67a2771a3e4047602eb5e6f7f5d83d53
Author: stefan
Category: javax / databases
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-03 17:45:14
Source code size: 580 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 551 / 633
Referenced in: [show references]