{"action":"created","issue":{"url":"https://api.github.com/repos/OpenHFT/Chronicle-Map/issues/100","repository_url":"https://api.github.com/repos/OpenHFT/Chronicle-Map","labels_url":"https://api.github.com/repos/OpenHFT/Chronicle-Map/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/OpenHFT/Chronicle-Map/issues/100/comments","events_url":"https://api.github.com/repos/OpenHFT/Chronicle-Map/issues/100/events","html_url":"https://github.com/OpenHFT/Chronicle-Map/issues/100","id":180038569,"number":100,"title":"How to use nested map?","user":{"login":"timlincool","id":5269547,"avatar_url":"https://avatars.githubusercontent.com/u/5269547?v=3","gravatar_id":"","url":"https://api.github.com/users/timlincool","html_url":"https://github.com/timlincool","followers_url":"https://api.github.com/users/timlincool/followers","following_url":"https://api.github.com/users/timlincool/following{/other_user}","gists_url":"https://api.github.com/users/timlincool/gists{/gist_id}","starred_url":"https://api.github.com/users/timlincool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timlincool/subscriptions","organizations_url":"https://api.github.com/users/timlincool/orgs","repos_url":"https://api.github.com/users/timlincool/repos","events_url":"https://api.github.com/users/timlincool/events{/privacy}","received_events_url":"https://api.github.com/users/timlincool/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-29T12:42:56Z","updated_at":"2016-09-29T13:52:42Z","closed_at":"2016-09-29T13:52:42Z","body":"How to use nested map?\r\n\r\nfor example\r\n\r\nI try these, but don't work.\r\n\r\n```\r\n\r\n\t\t ChronicleMap<String, String> map = ChronicleMap.of(String.class, String.class).entries(10).averageKeySize(1).averageValueSize(1).create();\r\n\t\t map.put(\"test\", \"test\");\r\n\t\t ChronicleMap<String, ChronicleMap > nestedMap = ChronicleMap.of(String.class, ChronicleMap.class).entries(100).averageKeySize(1).averageValueSize(1).actualSegments(3).create();\t\t\t\r\n\t\t nestedMap.put(\"test\", map);\r\n\t\t System.out.println(nestedMap);\r\n```\r\n\r\n\r\ngot exception \r\n\r\n```\r\nException in thread \"main\" java.lang.ClassCastException: net.openhft.chronicle.map.VanillaChronicleMap cannot be cast to java.io.Serializable\r\n\tat net.openhft.chronicle.hash.serialization.impl.SerializableDataAccess.getData(SerializableDataAccess.java:32)\r\n\tat net.openhft.chronicle.map.VanillaChronicleMap.put(VanillaChronicleMap.java:564)\r\n```\r\n\r\n\t\t\t\r\n\t\t\t"},"comment":{"url":"https://api.github.com/repos/OpenHFT/Chronicle-Map/issues/comments/250472031","html_url":"https://github.com/OpenHFT/Chronicle-Map/issues/100#issuecomment-250472031","issue_url":"https://api.github.com/repos/OpenHFT/Chronicle-Map/issues/100","id":250472031,"user":{"login":"leventov","id":609240,"avatar_url":"https://avatars.githubusercontent.com/u/609240?v=3","gravatar_id":"","url":"https://api.github.com/users/leventov","html_url":"https://github.com/leventov","followers_url":"https://api.github.com/users/leventov/followers","following_url":"https://api.github.com/users/leventov/following{/other_user}","gists_url":"https://api.github.com/users/leventov/gists{/gist_id}","starred_url":"https://api.github.com/users/leventov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leventov/subscriptions","organizations_url":"https://api.github.com/users/leventov/orgs","repos_url":"https://api.github.com/users/leventov/repos","events_url":"https://api.github.com/users/leventov/events{/privacy}","received_events_url":"https://api.github.com/users/leventov/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T13:52:42Z","updated_at":"2016-09-29T13:52:42Z","body":"@timlincool you can also find this discussion useful: http://stackoverflow.com/questions/36483569/multimaps-in-chroniclemap"}}
{"actor":{"display_login":"leventov"}}