moengine

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const ADDR = "localhost:20000"

Variables

View Source
var ErrReadOnly = errors.New("tae moengine: read only")

Functions

func AppendFixedValue

func AppendFixedValue[T any](vec *vector.Vector, v any)

func AppendValue

func AppendValue(vec *vector.Vector, v any)

func ApplyDeleteToVector

func ApplyDeleteToVector(vec *vector.Vector, deletes *roaring.Bitmap) *vector.Vector

func ApplyUpdateToVector

func ApplyUpdateToVector(vec *vector.Vector, mask *roaring.Bitmap, vals map[uint32]any) *vector.Vector

func BatchWindow

func BatchWindow(bat *batch.Batch, start, end int) *batch.Batch

func CopyToMoVector

func CopyToMoVector(vec containers.Vector) *vector.Vector

func CopyToMoVectors

func CopyToMoVectors(vecs []containers.Vector) []*vector.Vector

func DefsToSchema

func DefsToSchema(name string, defs []engine.TableDef) (schema *catalog.Schema, err error)

func ForEachValue

func ForEachValue(col *vector.Vector, reversed bool, op func(v any, row uint32) error) (err error)

func GenericUpdateFixedValue

func GenericUpdateFixedValue[T any](vec *vector.Vector, row uint32, v any)

func GetValue

func GetValue(col *vector.Vector, row uint32) any

func MOToVector

func MOToVector(v *vector.Vector, nullable bool) containers.Vector

func MOToVectorTmp

func MOToVectorTmp(v *vector.Vector, nullable bool) containers.Vector

func MOToVectors

func MOToVectors(movecs []*vector.Vector, nullables []bool) []containers.Vector

func MockVec

func MockVec(typ types.Type, rows int, offset int) *vector.Vector

func NewEngine

func NewEngine(impl *db.DB) *txnEngine

func SchemaToDefs

func SchemaToDefs(schema *catalog.Schema) (defs []engine.TableDef, err error)

func SplitBatch

func SplitBatch(bat *batch.Batch, cnt int) []*batch.Batch

func UpdateOffsets

func UpdateOffsets(data *types.Bytes, start, end int)

func UpdateValue

func UpdateValue(col *vector.Vector, row uint32, val any)

func VectorsToMO

func VectorsToMO(vec containers.Vector) *vector.Vector

Types

type Txn

type Txn interface {
	GetCtx() []byte
	GetID() uint64
	Commit() error
	Rollback() error
	String() string
	Repr() string
	GetError() error
}

type TxnEngine

type TxnEngine interface {
	engine.Engine
	StartTxn(info []byte) (txn Txn, err error)
}

Jump to

Keyboard shortcuts

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