mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
updated import
This commit is contained in:
@@ -628,10 +628,12 @@ void putAll(File fromFile) throws IOException;
|
||||
Its only the entries of your map that are exported, not the configuration of your map. So care
|
||||
must be taken to populate the data in to a map of the correct Key/Value type and with enough
|
||||
available entries. When importing data :
|
||||
|
||||
* entries that are in the map but not in the JSON file will remain untouched.
|
||||
* entries that are in the map and in the JSON file will be updated.
|
||||
* entries that are not in the map but are in the JSON file wil added.
|
||||
* In other words importing data into a Chronicle Map works like `map.putAll(<JSON entries>)`.
|
||||
* entries that are not in the map but are in the JSON file will be added.
|
||||
|
||||
In other words importing data into a Chronicle Map works like `map.putAll(<JSON entries>)`.
|
||||
|
||||
When Importing data if you are also writing to the map at the same time, the last update will win.
|
||||
In other words a write lock is not held for the entire import process.
|
||||
|
||||
Reference in New Issue
Block a user