zstd

package
v0.0.0-...-5d42db8 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

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
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec struct {
	Level Level
	// contains filtered or unexported fields
}

func (*Codec) CompressionCodec

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

func (*Codec) Decode

func (c *Codec) Decode(dst, src []byte) ([]byte, error)

func (*Codec) Encode

func (c *Codec) Encode(dst, src []byte) ([]byte, 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