← ZIO Streams Compress docs

SnappyWriteFormat

zio.compress.SnappyWriteFormat
See theSnappyWriteFormat companion trait

Attributes

Companion
trait
Source
SnappyWriteFormat.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class Basic(blockSize: Int = ...) extends SnappyWriteFormat

Write snappy in the basic (unframed) format.

Write snappy in the basic (unframed) format.

Value parameters

blockSize

the number of bytes from the input that are compressed together. Higher block sizes lead to higher compression ratios. Defaults to 32 KiB. Must be in [1 KiB, 512 MiB].

Attributes

Source
SnappyWriteFormat.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Framed(blockSize: Int = ..., minCompressionRatio: Double = ...) extends SnappyWriteFormat

Write snappy in the framed format.

Write snappy in the framed format.

Value parameters

blockSize

the number of bytes from the input that are compressed together. Higher block sizes lead to higher compression ratios. Defaults to 64 KiB. Must be in [1, 64 KiB].

minCompressionRatio

Defines the minimum compression ratio (compressedLength / rawLength) that must be achieved to write the compressed data. Defaults to 0.85. Must be in (0.0, 1.0].

Attributes

See also
Source
SnappyWriteFormat.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class HadoopCompatible(blockSize: Int = ...) extends SnappyWriteFormat

Write snappy in the format used by Hadoop and Spark.

Write snappy in the format used by Hadoop and Spark.

Compression for use with Hadoop libraries: it does not emit a file header but write out the current block size as a preamble to each block.

Value parameters

blockSize

the number of bytes from the input that are compressed together. Higher block sizes lead to higher compression ratios. Defaults to 32 KiB. Must be in [1 KiB, 512 MiB].

Attributes

Source
SnappyWriteFormat.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala