blockio

package
v0.0.0-debug-20260702 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EncodeLocation = objectio.BuildLocation
View Source
var EncodeLocationFromString = objectio.StringToLocation

Functions

func BlockDataRead

func BlockDataRead(
	ctx context.Context,
	info *objectio.BlockInfo,
	ds engine.DataSource,
	columns []uint16,
	colTypes []types.Type,
	phyAddrColumnPos int,
	ts timestamp.Timestamp,
	filterSeqnums []uint16,
	filterColTypes []types.Type,
	filter objectio.BlockReadFilter,
	orderByLimit *objectio.IndexReaderTopOp,
	policy fileservice.Policy,
	tableName string,
	bat *batch.Batch,
	cacheVectors containers.Vectors,
	mp *mpool.MPool,
	fs fileservice.FileService,
) error

BlockDataRead only read block data from storage, don't apply deletes.

func BlockDataReadBackup

func BlockDataReadBackup(
	ctx context.Context,
	info *objectio.BlockInfo,
	ds engine.DataSource,
	idxes []uint16,
	ts types.TS,
	fs fileservice.FileService,
) (loaded *batch.Batch, sortKey uint16, err error)

func BlockDataReadInner

func BlockDataReadInner(
	ctx context.Context,
	info *objectio.BlockInfo,
	ds engine.DataSource,
	columns []uint16,
	colTypes []types.Type,
	phyAddrColumnPos int,
	ts types.TS,
	selectRows []int64,
	orderByLimit *objectio.IndexReaderTopOp,
	policy fileservice.Policy,
	outputBat *batch.Batch,
	cacheVectors containers.Vectors,
	mp *mpool.MPool,
	fs fileservice.FileService,
) (err error)

BlockDataReadInner only read data,don't apply deletes.

func BlockDataReadNoCopy

func BlockDataReadNoCopy(
	ctx context.Context,
	info *objectio.BlockInfo,
	ds engine.DataSource,
	columns []uint16,
	colTypes []types.Type,
	ts types.TS,
	policy fileservice.Policy,
	mp *mpool.MPool,
	fs fileservice.FileService,
) (*batch.Batch, *nulls.Bitmap, func(), error)

BlockDataReadNoCopy only read block data from storage, don't apply deletes.

func CopyBlockData

func CopyBlockData(
	ctx context.Context,
	location objectio.Location,
	deletes []int64,
	seqnums []uint16,
	colTypes []types.Type,
	outputBat *batch.Batch,
	fs fileservice.FileService,
	mp *mpool.MPool,
) (err error)

func HandleOrderByLimitOnIVFFlatIndex

func HandleOrderByLimitOnIVFFlatIndex(
	ctx context.Context,
	selectRows []int64,
	vecCol *vector.Vector,
	orderByLimit *objectio.IndexReaderTopOp,
) ([]int64, []float64, error)

func ReadDataByFilter

func ReadDataByFilter(
	ctx context.Context,
	tableName string,
	info *objectio.BlockInfo,
	ds engine.DataSource,
	columns []uint16,
	colTypes []types.Type,
	ts types.TS,
	searchFunc objectio.ReadFilterSearchFuncType,
	cacheVectors containers.Vectors,
	mp *mpool.MPool,
	fs fileservice.FileService,
) (sels []int64, err error)

ReadDataByFilter only read block data from storage by filter, don't apply deletes. Right now, it cannot support filter by physical address column. len(columns) == len(colTypes) >= 1 (supports multiple columns for optimization)

Types

This section is empty.

Jump to

Keyboard shortcuts

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