它们是Java的Map的任何可行的磁盘实现吗? [英] Are they any decent on-disk implementations of Java's Map?

查看:106
本文介绍了它们是Java的Map的任何可行的磁盘实现吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找 java.util.Map 的磁盘实现。没有什么太奇特,只是一些东西,我可以指向一个目录或文件,并有它存储其内容,在某种程度上它选择。有人知道这样的事吗?

I'm looking for an on-disk implementation of java.util.Map. Nothing too fancy, just something that I can point at a directory or file and have it store its contents there, in some way it chooses. Does anyone know of such a thing?

推荐答案

你可以看看 Disk-Backed-map 项目。


在Java中实现磁盘映射的库

A library that implements a disk backed map in Java

一个小库,提供一个磁盘映射实现,用于存储大量键值对。对于非常简单的键/值对,映射实现(HashMap,HashTable)最大约为3-4万亿个键/ GB的内存,在大多数情况下,限制要低得多。另一方面,DiskBacked映射可以存储16百万(64位JVM)到20万(32位JVM)键/ GB之间,而不管键/值对的大小。

A small library that provide a disk backed map implementation for storing large number of key value pairs. The map implementations (HashMap, HashTable) max out around 3-4Million keys/GB of memory for very simple key/value pairs and in most cases the limit is much lower. DiskBacked map on the other hand can store betweeen 16Million (64bit JVM) to 20Million(32bit JVM) keys/GB, regardless the size of the key/value pairs.

这篇关于它们是Java的Map的任何可行的磁盘实现吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆