匹配数据 [英] Matching the data

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

问题描述

大家好,

1)我的问题是,如果Arraylist,List,Vector中有1,00,000个文件,我将如何有效地挑选想要的名称.

我该怎么办?

2)与上面的问题相同,但是数据存储在文本文件中,我必须从文件中存储的大量数据(电子邮件或人名)中匹配所需的单人名或电子邮件.

您能否更详细地说明它?

Hello All,

1) My Question is if there are 1,00,000 files in the Arraylist, List, Vector how will I efficiently pick out the name I want.

How can I do it?

2) This one is same as the above question but the data is stored in the text file and I have to match the required single person name or email from the huge data stored in the file(emails or person name).

will you explain it with some more detailed please

推荐答案

对于问题1,您可能应该使用 ^ ]或基于其中之一的您自己的课程.

对于问题2,某种形式的数据库最有可能是最佳选择.
For question 1 you should probably use one of the Collection Classes[^] or your own class based on one of these.

For question 2 some form of database is most likely the best option.


(1)我想HashMap可以解决问题.
(2)很大程度上取决于文件结构.
:)

[添加]

HashMap基于哈希表,效率很高.有关某些信息,请参见 http://en.wikipedia.org/wiki/Hashtable .
[/添加]
(1) I suppose an HashMap would do the trick.
(2) It strongly depends on the file structure.
:)

[added]

HashMap is based on hash table, that is fairly efficient. See http://en.wikipedia.org/wiki/Hashtable for some info.
[/added]


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

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