index

package
v0.0.62 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const ZSTDCompressionLevel = 3 // 1, 3, 9

Variables

This section is empty.

Functions

func WriteFull added in v0.0.61

func WriteFull(w io.Writer, full Full, id string) error

func ZSTDCompress added in v0.0.61

func ZSTDCompress(dst, src []byte, compressionLevel int) ([]byte, error)

ZSTDCompress compresses a block using ZSTD algorithm.

func ZSTDCompressBound added in v0.0.61

func ZSTDCompressBound(srcSize int) int

ZSTDCompressBound returns the worst case size needed for a destination buffer. Klauspost ZSTD library does not provide any API for Compression Bound. This calculation is based on the DataDog ZSTD library. See https://pkg.go.dev/github.com/DataDog/zstd#CompressBound

func ZSTDDecompress added in v0.0.61

func ZSTDDecompress(dst, src []byte) ([]byte, error)

ZSTDDecompress decompresses a block using ZSTD algorithm.

Types

type Column

type Column interface {
	NumRows() uint32
	Name() string
	Empty() bool
	Fst() []byte
	Bitmaps(f func(int, *roaring.Bitmap) error) error
}

type ColumnImpl

type ColumnImpl struct {
	// contains filtered or unexported fields
}

func NewColIdx

func NewColIdx() *ColumnImpl

func (*ColumnImpl) Build

func (c *ColumnImpl) Build(name string) (*FullColumn, error)

func (*ColumnImpl) Index

func (c *ColumnImpl) Index(e *array.Dictionary)

func (*ColumnImpl) Release

func (c *ColumnImpl) Release()

func (*ColumnImpl) Reset

func (c *ColumnImpl) Reset()

type FileIndex added in v0.0.61

type FileIndex struct {
	// contains filtered or unexported fields
}

func NewFileIndex added in v0.0.61

func NewFileIndex(r ReaderAtSeeker) (*FileIndex, error)

func (*FileIndex) CanIndex added in v0.0.61

func (f *FileIndex) CanIndex() bool

func (*FileIndex) Columns added in v0.0.61

func (f *FileIndex) Columns(_ func(column Column) error) error

func (*FileIndex) Match added in v0.0.61

func (f *FileIndex) Match(b *roaring.Bitmap, m []*filters.CompiledFilter)

func (*FileIndex) Max added in v0.0.61

func (f *FileIndex) Max() uint64

func (*FileIndex) Min added in v0.0.61

func (f *FileIndex) Min() uint64

func (*FileIndex) Size added in v0.0.61

func (f *FileIndex) Size() (n uint64)

type Full

type Full interface {
	Columns(f func(column Column) error) error
	Match(b *roaring.Bitmap, m []*filters.CompiledFilter)
	Size() uint64
	Min() uint64
	Max() uint64
	CanIndex() bool
}

type FullColumn

type FullColumn struct {
	// contains filtered or unexported fields
}

func (*FullColumn) Bitmaps

func (f *FullColumn) Bitmaps(fn func(int, *roaring.Bitmap) error) error

func (*FullColumn) Empty

func (f *FullColumn) Empty() bool

func (*FullColumn) Fst

func (f *FullColumn) Fst() []byte

func (*FullColumn) Load

func (f *FullColumn) Load() *vellum.FST

func (*FullColumn) Match

func (*FullColumn) Name added in v0.0.61

func (f *FullColumn) Name() string

func (*FullColumn) NumRows

func (f *FullColumn) NumRows() uint32

func (*FullColumn) Size

func (f *FullColumn) Size() (n uint64)

type FullMapColumn

type FullMapColumn map[string]*FullColumn

func (FullMapColumn) Match

func (FullMapColumn) Size

func (m FullMapColumn) Size() (n uint64)

type Index

type Index interface {
	Index(arrow.Record) (Full, error)
}

type Primary

type Primary interface {
	Add(resource string, granule *v1.Granule)
}

type ReaderAtSeeker added in v0.0.61

type ReaderAtSeeker interface {
	io.ReaderAt
	io.Seeker
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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