compression

package
v0.0.0-...-1676ef7 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec interface {
	// Encode encodes uncompressed bytes from src and appends them to dst.
	Encode(src, dst []byte) ([]byte, uint32)
	// Decode decodes compressed bytes from src and appends them to dst.
	Decode(src, dst []byte) ([]byte, uint32, error)
	// ChunkLen returns the maximum size of chunk for particular codec.
	ChunkLen() uint32
	// CellBlockCompressorClass returns full Java class name of the compressor on the HBase side
	CellBlockCompressorClass() string
}

Codec is used to encode and decode chunks of hadoop's sequence file chunks.

func New

func New(codec string) Codec

New instantiates passed codec. Currently supported codes are: - snappy

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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