Class IndexedFileMap<K,​V>

  • Type Parameters:
    K -
    V -
    All Implemented Interfaces:
    FileMap<K,​V>, Map<K,​V>

    public class IndexedFileMap<K,​V>
    extends AbstractFileMap<K,​V>
    This thread safe hash map stores its key/values on disk. Only the keys are are in memory, along with the value's position in the file. This allows to store much more data than would normally fit in memory. Each insertion/update/removal is saved to the file in a readable JSON format. Note that the file works like a log and old entries are not "removed". They will only be overridden. This means that the file only grows.
    Author:
    dagnelies