public class SnappyCompressionCodec extends Object implements CompressionCodec
CompressionCodec
.
Block size can be configured by spark.io.compression.snappy.block.size.
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) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createCodec, createCodec, DEFAULT_COMPRESSION_CODEC
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