tables

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPersistedColumnData added in v0.7.0

func LoadPersistedColumnData(
	mgr base.INodeManager,
	fs *objectio.ObjectFS,
	id *common.ID,
	def *catalog.ColDef,
	location string,
	buffer *bytes.Buffer) (vec containers.Vector, err error)

func LoadPersistedDeletes added in v0.7.0

func LoadPersistedDeletes(
	mgr base.INodeManager,
	fs *objectio.ObjectFS,
	location string) (bat *containers.Batch, err error)

func ReadPersistedBlockRow added in v0.7.0

func ReadPersistedBlockRow(location string) int

Types

type BlockT added in v0.7.0

type BlockT[T common.IRef] interface {
	common.IRef
	Pin() *common.PinnedItem[T]
	GetID() *common.ID
}

type DataFactory

type DataFactory struct {
	AppendBufMgr base.INodeManager
	Scheduler    tasks.TaskScheduler

	Fs *objectio.ObjectFS
	// contains filtered or unexported fields
}

func NewDataFactory

func NewDataFactory(fs *objectio.ObjectFS,
	appendBufMgr base.INodeManager,
	scheduler tasks.TaskScheduler,
	dir string) *DataFactory

func (*DataFactory) MakeBlockFactory

func (factory *DataFactory) MakeBlockFactory() catalog.BlockDataFactory

func (*DataFactory) MakeSegmentFactory

func (factory *DataFactory) MakeSegmentFactory() catalog.SegmentDataFactory

func (*DataFactory) MakeTableFactory

func (factory *DataFactory) MakeTableFactory() catalog.TableDataFactory

type Node added in v0.7.0

type Node struct {
	NodeT
}

func NewNode added in v0.7.0

func NewNode(node NodeT) *Node

func (*Node) MustMNode added in v0.7.0

func (n *Node) MustMNode() *memoryNode

func (*Node) MustPNode added in v0.7.0

func (n *Node) MustPNode() *persistedNode

type NodeT added in v0.7.0

type NodeT interface {
	common.IRef

	IsPersisted() bool

	PrepareAppend(rows uint32) (n uint32, err error)
	ApplyAppend(
		bat *containers.Batch,
		txn txnif.AsyncTxn,
	) (from int, err error)

	GetDataWindow(from, to uint32) (bat *containers.Batch, err error)
	GetColumnDataWindow(
		from uint32,
		to uint32,
		colIdx int,
		buffer *bytes.Buffer,
	) (vec containers.Vector, err error)

	GetValueByRow(row, col int) (v any)
	GetRowsByKey(key any) (rows []uint32, err error)
	BatchDedup(
		keys containers.Vector,
		skipFn func(row uint32) error,
	) (sels *roaring.Bitmap, err error)
	ContainsKey(key any) (ok bool, err error)

	Rows() uint32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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