package zstd
Import Path
github.com/parquet-go/parquet-go/compress/zstd (on go.dev)
Dependency Relation
imports 3 packages, and imported by one package
Involved Source Files
Package zstd implements the ZSTD parquet compression codec.
Package-Level Type Names (total 2)
Concurrency is the number of CPU cores to use for encoding and decoding.
If Concurrency is 0, it will use DefaultConcurrency.
Level Level
(*Codec) CompressionCodec() format.CompressionCodec
(*Codec) Decode(dst, src []byte) ([]byte, error)
(*Codec) Encode(dst, src []byte) ([]byte, error)
(*Codec) String() string
*Codec : github.com/parquet-go/parquet-go/compress.Codec
*Codec : expvar.Var
*Codec : fmt.Stringer
var github.com/parquet-go/parquet-go.Zstd
type Level = zstd.EncoderLevel (basic type)
Package-Level Constants (total 6)
const DefaultConcurrency = 1 const DefaultLevel zstd.EncoderLevel = 2
SpeedBestCompression will choose the best available compression option.
This will offer the best compression no matter the CPU cost.
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.
SpeedDefault is the default "pretty fast" compression option.
This is roughly equivalent to the default Zstandard mode (level 3).
SpeedFastest will choose the fastest reasonable compression.
This is roughly equivalent to the fastest Zstandard mode.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |