有关Raptor数据库的有限信息 [英] Limited Information about Raptor Database

查看:74
本文介绍了有关Raptor数据库的有限信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我以前的文章中,我问了一些非常简单的问题,但是现在我已经弄清楚了如何添加对项目的引用,以便可以开始编码,但找不到关于程序语法以及每个命令的内容的任何文档.做?如果键入raptordb,则会得到以下列表:


1. byterr
2.字节数组比较器
3.全局
4.哈希
5.索引
6. indextype
7. murmurhash2unsafe
8. RaptorDB
9.安全词典
10. storagefile

我的目标是将文本文件的内容添加到该数据库,然后使用我的程序从数据库中读取.我也想按哈希对它进行排序,但是如果有人可以给我一个我在这里列出的功能的摘要,那将非常有帮助,因为很少有文档描述使用它的方式及其所提供的功能.

In my previous posts I was asking some pretty easy questions but now that I have figured out how to add the references to my project so that I can start coding I cannot find any documentation about the syntax of the program and what each command does? if I type raptordb I get a list of the following:


1. byterr
2. byte array comparer
3. global
4. hash
5. index
6. indextype
7. murmurhash2unsafe
8. RaptorDB
9. safedictionary
10. storagefile

my goal is to add the contents of my text file to this database and then use my program to read from the database. I would also like to sort it by hash but if someone could give me a rundown of the functions I have listed here it would greatly help as there is very limited documentation describing the ways to use it and what it has to offer. Thank you in advance!

推荐答案

您所需要的只是RaptorDB类,将以下示例转换为vb即可.
All you need is the RaptorDB class, convert the following sample to vb and you are good to go.
RaptorDB.RaptorDB rap = RaptorDB.RaptorDB.Open("strings", 30, false, INDEXTYPE.HASH);
rap.IndexingTimerSeconds = 1;
rap.InMemoryIndex = true;
string key = "some very long string";

for (int i = 0; i < count; i++)
{
	string ss = key + i.ToString("000000");
	rap.Set(ss, ss);
}

rap.SaveIndex(true);
int j = 0;
for (int i = 0; i < count; i++)
{
	string ss = key + i.ToString("000000");
	byte[] bb = null;
	if (rap.Get(ss, out bb) == false)
		j++;// Console.WriteLine("error");
}


这篇关于有关Raptor数据库的有限信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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