zstd

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 zstd implements the ZSTD parquet compression codec.

Index

Constants

View Source
const (
	// SpeedFastest will choose the fastest reasonable compression.
	// This is roughly equivalent to the fastest Zstandard mode.
	SpeedFastest = zstd.SpeedFastest

	// SpeedDefault is the default "pretty fast" compression option.
	// This is roughly equivalent to the default Zstandard mode (level 3).
	SpeedDefault = zstd.SpeedDefault

	// SpeedBetterCompression will yield better compression than the default.
	// Currently it is about zstd level 7-8 with ~ 2x-3x the default CPU usage.
	// By using this, notice that CPU usage may go up in the future.
	SpeedBetterCompression = zstd.SpeedBetterCompression

	// SpeedBestCompression will choose the best available compression option.
	// This will offer the best compression no matter the CPU cost.
	SpeedBestCompression = zstd.SpeedBestCompression
)
View Source
const (
	DefaultLevel       = SpeedDefault
	DefaultConcurrency = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec struct {
	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 = zstd.EncoderLevel

Jump to

Keyboard shortcuts

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