evictable

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Disk = iota
	S3
)
View Source
const (
	ConstPinDuration = 5 * time.Second
)

Variables

This section is empty.

Functions

func EncodeColBfKey

func EncodeColBfKey(idx uint16, metaloc string) string

func EncodeColDataKey

func EncodeColDataKey(idx uint16, metaloc string) string

func EncodeColMetaKey

func EncodeColMetaKey(idx uint16, metaloc string) string

func EncodeDeltaDataKey

func EncodeDeltaDataKey(idx uint16, deltaloc string) string

func EncodeDeltaMetaKey

func EncodeDeltaMetaKey(deltaloc string) string

func FetchColumnData

func FetchColumnData(buf *bytes.Buffer, mgr base.INodeManager, id *common.ID, fs *objectio.ObjectFS, col uint16, metaloc string, colDef *catalog.ColDef) (res containers.Vector, err error)

func FetchDeltaData

func FetchDeltaData(buf *bytes.Buffer, mgr base.INodeManager, fs *objectio.ObjectFS, deltaloc string, colidx uint16, typ types.Type) (res containers.Vector, err error)

func PinEvictableNode

func PinEvictableNode(mgr base.INodeManager, key string, factory EvictableNodeFactory) (base.INodeHandle, error)

Types

type BackendKind

type BackendKind = uint8
var StorageBackend BackendKind = Disk

type BfNode

type BfNode struct {
	*buffer.Node

	Bf index.StaticFilter
	// contains filtered or unexported fields
}

func NewBfNode

func NewBfNode(mgr base.INodeManager, bfKey, metaKey string, fs *objectio.ObjectFS, idx uint16, metaloc string, typ types.Type) (node *BfNode, err error)

type ColDataNode

type ColDataNode struct {
	*buffer.Node

	Data containers.Vector
	// contains filtered or unexported fields
}

func NewColDataNode

func NewColDataNode(mgr base.INodeManager, colDataKey, metaKey string, fs *objectio.ObjectFS, col uint16, metaloc string, colDef *catalog.ColDef, id *common.ID) (node *ColDataNode, err error)

func (*ColDataNode) GetData

func (n *ColDataNode) GetData(buf *bytes.Buffer) (containers.Vector, error)

type ColumnMetaNode

type ColumnMetaNode struct {
	*buffer.Node
	// data
	objectio.ColumnObject
	Zonemap *index.ZoneMap
	// contains filtered or unexported fields
}

func NewColumnMetaNode

func NewColumnMetaNode(mgr base.INodeManager, metaKey string, fs *objectio.ObjectFS, idx uint16, metaloc string, typ types.Type) *ColumnMetaNode

type DeltaDataNode

type DeltaDataNode struct {
	*buffer.Node

	Data containers.Vector
	// contains filtered or unexported fields
}

func NewDeltaDataNode

func NewDeltaDataNode(mgr base.INodeManager, deltaDataKey, metaKey string, fs *objectio.ObjectFS, deltaloc string, colidx uint16, typ types.Type) (node *DeltaDataNode, err error)

func (*DeltaDataNode) GetData

func (n *DeltaDataNode) GetData(buf *bytes.Buffer) (containers.Vector, error)

type DeltaMetaNode

type DeltaMetaNode struct {
	*buffer.Node
	// data
	objectio.BlockObject
	// contains filtered or unexported fields
}

func NewDeltaMetaNode

func NewDeltaMetaNode(mgr base.INodeManager, metaKey string, fs *objectio.ObjectFS, deltaloc string) *DeltaMetaNode

type EvictableNodeFactory

type EvictableNodeFactory = func() (base.INode, error)

Jump to

Keyboard shortcuts

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