sudarshansarolkar / treapdb

Automatically exported from code.google.com/p/treapdb
0 stars 0 forks source link

能用到android手机上吗? #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
android手机上市场不小,有相关版本吗或计划出吗?

Original issue reported on code.google.com by wing5jface@gmail.com on 8 Dec 2010 at 1:10

GoogleCodeExporter commented 9 years ago
谢谢你的反馈,我们会考虑的,不过对Android中应用场景不太�
��解。
加我Gtalk,详聊:ccnusjy [at] gmail.com

Original comment by ccnu...@gmail.com on 9 Dec 2010 at 12:50

GoogleCodeExporter commented 9 years ago
同样是资料储存,例如单词软件,在线时同步资料,离线时��
�地脱机保存等应用

Original comment by wing5jface@gmail.com on 10 Dec 2010 at 2:08

GoogleCodeExporter commented 9 years ago
@wing5jface
我明白了,TreapDB还真挺适合做字典程序背后的数据库的。 
我会花些时间了解如何将Java程序一致到Android的,应该问题不
大,因为没有使用第三方jar包(除了Thrift服务器).

Original comment by ccnu...@gmail.com on 11 Dec 2010 at 1:47

GoogleCodeExporter commented 9 years ago
android的计划怎么样了?有没有类似sqlite的方式,不需要服务�
��支持,运作的能力?

Original comment by newli...@gmail.com on 18 Aug 2012 at 7:55

GoogleCodeExporter commented 9 years ago
可以。

Yes,put libtreap-xx.jar in your app's classpath.
    DiskTreap<String, Serializable> treap = new DiskTreap<String,Serializable>
(new File("/usr/local/indexpath")); 

    treap.put(...)
    treap.get(...)
    ...

    /* key can be any type which implements Comparable;
    value can be any type which implements Serializable*/

Original comment by ccnu...@gmail.com on 11 Sep 2012 at 3:06