Documentation ¶
Index ¶
- Constants
- func Accept(min, max, start, end int64) bool
- func AcceptWith(min, max, start, end int64, fn func()) bool
- func WriteFull(w io.Writer, full Full, id string) error
- func ZSTDCompress(dst, src []byte, compressionLevel int) ([]byte, error)
- func ZSTDCompressBound(srcSize int) int
- func ZSTDDecompress(dst, src []byte) ([]byte, error)
- type Column
- type ColumnImpl
- type FileIndex
- func (f *FileIndex) CanIndex() bool
- func (f *FileIndex) Columns(_ func(column Column) error) error
- func (f *FileIndex) Get(name string) (*FullColumn, error)
- func (f *FileIndex) Match(b *roaring.Bitmap, m []*filters.CompiledFilter)
- func (f *FileIndex) Max() uint64
- func (f *FileIndex) Min() uint64
- func (f *FileIndex) NumRows() int
- func (f *FileIndex) Size() (n uint64)
- type Full
- type FullColumn
- func (f *FullColumn) Bitmaps(fn func(int, *roaring.Bitmap) error) error
- func (f *FullColumn) Empty() bool
- func (f *FullColumn) Equal(c Column) bool
- func (f *FullColumn) Fst() []byte
- func (f *FullColumn) Load() *vellum.FST
- func (f *FullColumn) Match(m *filters.CompiledFilter) *roaring.Bitmap
- func (f *FullColumn) Name() string
- func (f *FullColumn) NumRows() uint32
- func (f *FullColumn) Size() (n uint64)
- type Index
- type Part
- type ReaderAtSeeker
Constants ¶
View Source
const ZSTDCompressionLevel = 3 // 1, 3, 9
Variables ¶
This section is empty.
Functions ¶
func AcceptWith ¶
func ZSTDCompress ¶
ZSTDCompress compresses a block using ZSTD algorithm.
func ZSTDCompressBound ¶
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 ¶
ZSTDDecompress decompresses a block using ZSTD algorithm.
Types ¶
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 ¶
type FileIndex struct {
// contains filtered or unexported fields
}
func NewFileIndex ¶
func NewFileIndex(r ReaderAtSeeker) (*FileIndex, error)
type FullColumn ¶
type FullColumn struct {
// contains filtered or unexported fields
}
func (*FullColumn) Empty ¶
func (f *FullColumn) Empty() bool
func (*FullColumn) Equal ¶
func (f *FullColumn) Equal(c Column) bool
func (*FullColumn) Fst ¶
func (f *FullColumn) Fst() []byte
func (*FullColumn) Load ¶
func (f *FullColumn) Load() *vellum.FST
func (*FullColumn) Match ¶
func (f *FullColumn) Match(m *filters.CompiledFilter) *roaring.Bitmap
func (*FullColumn) Name ¶
func (f *FullColumn) Name() string
func (*FullColumn) NumRows ¶
func (f *FullColumn) NumRows() uint32
func (*FullColumn) Size ¶
func (f *FullColumn) Size() (n uint64)
Click to show internal directories.
Click to hide internal directories.