Questions tagged [snappy]

Snappy is a compression algorithm for byte streams and a library implementing this algorithm. The standard distribution includes bindings for C and C++; there are third-party bindings for many other languages.

Snappy does not aim for maximum compression, or compatibility with any other compression library; instead, it aims for very high speeds and reasonable compression. For instance, compared to the fastest mode of zlib, Snappy is an order of magnitude faster for most inputs, but the resulting compressed files are anywhere from 20% to 100% bigger. On a single core of a Core i7 processor in 64-bit mode, Snappy compresses at about 250 MB/sec or more and decompresses at about 500 MB/sec or more.

Snappy is widely used inside Google, in everything from BigTable and MapReduce to Google's internal systems.

366 questions
0
votes
1 answer

Reading snappy compressed input in pig

I have a file that I am trying to load into pig that is compressed with snappy. I set the configuration options in grunt like was described in this jira issue but I am still getting the compressed data in the results. When I run the job it does…
rgimmy
  • 293
  • 7
  • 15
-1
votes
0 answers

Can Spark read a location having few files with no compression technique and some files stored with snappy compression techinique

Can Spark read a location having few files with no compression technique and some files stored with snappy compression techinique.I have a data allready stored in filename.parquet but now I want to store the data in filename.snappy.parquet.Will…
Ashutosh Rai
  • 123
  • 9
-1
votes
2 answers

How can I generate a pdf from web URL with Symfony 4?

I try to generate a pdf from webURL with the snappy bundle: class PagesController extends AbstractController { /** * @Route("/pdf", name="pdf") */ public function pdf(Request $request) { $snappy = $this->get("knp_snappy.pdf"); …
user10800263
-1
votes
1 answer

Snappy: How can I snappy compress byte buffer type?

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(),…
NoName
  • 1,509
  • 2
  • 20
  • 36
-1
votes
1 answer

Push binary contents of file to std::string for use with Google's Snappy

I'm trying to learn Google's c++ compression library Snappy. It requires that data be loaded into an std::string to compress or decompress it. How can I go about opening a file and loading the data into an std::string. Thanks.
Kahless
  • 1,213
  • 2
  • 13
  • 31
-4
votes
2 answers

Can snappy be used with Redis

After I compressed data by Snappy, and then stored it to Redis. But When I took it out of Redis, I found the data is different. I don't know why it is
totti
  • 9
  • 4
1 2 3
24
25