Embed Snappy Java library into H2

34 views
Skip to first unread message

Samhasi

unread,
Mar 12, 2012, 6:39:22 AM3/12/12
to H2 Database
Hi all,

As a research I would like to embed Snappy java library into H2. As a
start I went through org.h2.compress but not having much idea of how
to do it. Do I need to extend compressor class and write my own snappy
class ?? can someone help me on doing this

Regards,
Samhasi

Steve McLeod

unread,
Mar 12, 2012, 7:14:26 AM3/12/12
to h2-da...@googlegroups.com
My reading of the H2 source code suggests you'd need to write an implementation of org.h2.compress.Compressor. You could use one of the two existing implementations of this interface as an example. CompressDeflate is a wrapper so maybe that's the place to start.

Good luck and I'd be happy to hear about your results. Let us know if Snappy gives a performance improvement over the existing compression algorithms in H2.

Regards,

Steve

nolimit nolimit

unread,
Mar 13, 2012, 1:37:08 AM3/13/12
to h2-da...@googlegroups.com
Thank for the quick reply :). yeah it seems CompressDeflate is a good point to start, btw any idea of where these compression methods are called from ??

--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To view this discussion on the web visit https://groups.google.com/d/msg/h2-database/-/biDVuHnNMvkJ.
To post to this group, send email to h2-da...@googlegroups.com.
To unsubscribe from this group, send email to h2-database...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.

nolimit nolimit

unread,
Mar 13, 2012, 2:12:23 AM3/13/12
to h2-da...@googlegroups.com
ok found it, it seems i need to do couple of changes in org.h2.tools CompressTool.java also :D
Reply all
Reply to author
Forward
0 new messages