Guest User

Untitled

a guest
Jan 17th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. private static LZ4Compressor COMPRESS = LZ4Factory.fastestInstance().highCompressor();
  2.  
  3. String meMessageString = "My Message that I am sending to kafka";
  4. byte[] uncompressedBytes = jsonRequest.getBytes();
  5. long lz4compressedLength = COMPRESSOR.compress(uncompressedBytes).length;
Add Comment
Please, Sign In to add comment