In my Java code, I have data of type java.nio.ByteBuffer
. I have to snappy compress this. Using Snappy.compress()
by importing org.xerial.snappy.Snappy;
throws an error.
Snappy.compress(DataUtility.parseValue(record.valueSchema(), record.value())))
Do I need to convert this to another type before compressing or do I have to use a different compression method?
Thank you!