Please add setComparator for HashIndexFactory

17 views
Skip to first unread message

IL

unread,
Dec 19, 2011, 3:47:34 PM12/19/11
to hawtdb
HashIndexFactory does not support un-comparatable key.

Hiram Chirino

unread,
Dec 19, 2011, 4:06:42 PM12/19/11
to haw...@googlegroups.com
That's because entries in a hash index are not sorted. So there is no
need to compare keys.

Regards,
Hiram

FuseSource
Web: http://fusesource.com/

IL

unread,
Dec 19, 2011, 11:11:32 PM12/19/11
to hawtdb
When I call index.get(x) I got type cast exception: Cannot cast X to
Comparable.

IL

IL

unread,
Dec 19, 2011, 11:15:23 PM12/19/11
to hawtdb
  val factory = new PageFileFactory  factory.setFile(new File(path)) 
factory.open()  val page = factory.getPageFile  val indexFactory = new
HastIndexFactory[T1, T2]  val db = indexFactory.openOrCreate(page)

On Dec 20, 5:06 am, Hiram Chirino <hi...@hiramchirino.com> wrote:
Reply all
Reply to author
Forward
0 new messages