public class SnappyCompressionCodec extends java.lang.Object implements CompressionCodec
CompressionCodec
.
Block size can be configured by spark.io.compression.snappy.blockSize
.
Note: The wire protocol for this codec is not guaranteed to be compatible across versions of Spark. This is intended for use as an internal compression utility within a single Spark application.
Constructor and Description |
---|
SnappyCompressionCodec(SparkConf conf) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
compressedInputStream(java.io.InputStream s) |
java.io.OutputStream |
compressedOutputStream(java.io.OutputStream s) |
public SnappyCompressionCodec(SparkConf conf)
public java.io.OutputStream compressedOutputStream(java.io.OutputStream s)
compressedOutputStream
in interface CompressionCodec
public java.io.InputStream compressedInputStream(java.io.InputStream s)
compressedInputStream
in interface CompressionCodec