import net.openhft.collections.SharedHashMap;
public class HugeCollectionsExample {
public static void main(String[] args) {
SharedHashMap<String, Integer> map = new SharedHashMap.Builder()
.entries(1000000)
.create();
map.put("key1", 1);
map.put("key2", 2);
int value1 = map.get("key1");
int value2 = map.get("key2");
System.out.println("Value 1: " + value1);
System.out.println("Value 2: " + value2);
map.close();
}
}