options

package
v1.5.1-0...-38533b6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressionType

type CompressionType uint32

CompressionType specifies how a block should be compressed.

const (
	// None mode indicates that a block is not compressed.
	None CompressionType = 0
	// Snappy mode indicates that a block is compressed using Snappy algorithm.
	Snappy CompressionType = 1
	// ZSTD mode indicates that a block is compressed using ZSTD algorithm.
	ZSTD CompressionType = 2
)

func (CompressionType) Compress

func (c CompressionType) Compress(w io.Writer, data []byte) error

func (CompressionType) Decompress

func (c CompressionType) Decompress(data []byte) ([]byte, error)

type SuRFOptions

type SuRFOptions struct {
	HashSuffixLen  int
	RealSuffixLen  int
	BitsPerKeyHint int
}

type TableBuilderOptions

type TableBuilderOptions struct {
	HashUtilRatio       float32
	WriteBufferSize     int
	BytesPerSecond      int
	MaxLevels           int
	LevelSizeMultiplier int
	LogicalBloomFPR     float64
	BlockSize           int
	CompressionPerLevel []CompressionType
	SuRFStartLevel      int
	SuRFOptions         SuRFOptions
	MaxTableSize        int64
}

type ValueLogWriterOptions

type ValueLogWriterOptions struct {
	WriteBufferSize int
}

Jump to

Keyboard shortcuts

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