lz4

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package lz4 implements the LZ4_RAW parquet compression codec.

Index

Constants

View Source
const (
	Block64Kb  = lz4.Block64Kb
	Block256Kb = lz4.Block256Kb
	Block1Mb   = lz4.Block1Mb
	Block4Mb   = lz4.Block4Mb
)
View Source
const (
	Fast   = lz4.Fast
	Level1 = lz4.Level1
	Level2 = lz4.Level2
	Level3 = lz4.Level3
	Level4 = lz4.Level4
	Level5 = lz4.Level5
	Level6 = lz4.Level6
	Level7 = lz4.Level7
	Level8 = lz4.Level8
	Level9 = lz4.Level9
)
View Source
const (
	DefaultBlockSize   = Block4Mb
	DefaultLevel       = Fast
	DefaultConcurrency = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockSize

type BlockSize = lz4.BlockSize

type Codec

type Codec struct {
	BlockSize   BlockSize
	Level       Level
	Concurrency int
}

func (*Codec) CompressionCodec

func (c *Codec) CompressionCodec() format.CompressionCodec

func (*Codec) NewReader

func (c *Codec) NewReader(r io.Reader) (compress.Reader, error)

func (*Codec) NewWriter

func (c *Codec) NewWriter(w io.Writer) (compress.Writer, error)

func (*Codec) String

func (c *Codec) String() string

type Level

type Level = lz4.CompressionLevel

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL