GithubHelp home page GithubHelp logo

eluriresearch / persistenthashmap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reines/persistenthashmap

0.0 1.0 0.0 869 KB

A disk-based HashMap implementation allowing persistence of data across sessions.

License: BSD 3-Clause "New" or "Revised" License

Java 100.00%

persistenthashmap's Introduction

About Persistent-HashMap

The Persistent-HashMap is basically a persistent version of the Java HashMap class.

Build Status

Warning: It is not under active development, and has not been used in a production environment.

Persistent-HashMap can be found in maven central.

<dependency>
    <groupId>com.jamierf</groupId>
    <artifactId>persistenthashmap</artifactId>
    <version>...</version>
</dependency>

Features

  • Implements the Map interface so can be used in the exact same way as a regular HashMap.
  • No space needs preallocated.
  • Disk space is immediately reclaimed on removing an object.
  • No maintenance required to keep the data store clean.
  • Caching option that keeps a copy of the map in memory (using a standard HashMap) to speed up access.

Notes

  • Because the Map interface does not allow for exceptions being thrown null values are used to indicate an error. As such, the map should not be used to store null values otherwise the behaviour is undefined.
  • The Persistent-HashMap is thread-safe, but does not perform file locking. This means the same data store should not be accessed from multiple processes at once otherwise the behaviour is undefined.
  • Since objects are written to disk the Persistent-HashMap does not have amazingly good performance. It should only be used when persistence is necesary and performance is not critical.

License

The Persistent-HashMap library is released under the BSD 3-clause license.

Credits

The theory is based on HashStore.

persistenthashmap's People

Contributors

reines avatar joe0 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.