mutable

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig() *Config

func (*Config) GetShardMutableSizeLimit

func (conf *Config) GetShardMutableSizeLimit() int

func (*Config) SetShardMutableSizeLimit

func (conf *Config) SetShardMutableSizeLimit(limit int64)

type MemTable

type MemTable struct {
	// contains filtered or unexported fields
}

func GetMemTable

func GetMemTable(path string) *MemTable

func NewMemTable

func NewMemTable(conf *Config, path string) *MemTable

func (*MemTable) AddMemSize

func (t *MemTable) AddMemSize(size int64)

nolint

func (*MemTable) ApplyConcurrency

func (t *MemTable) ApplyConcurrency(f func(msName string, sids []uint64))

func (*MemTable) Close

func (t *MemTable) Close() error

func (*MemTable) FlushChunks

func (t *MemTable) FlushChunks(dataPath, msName string, tbStore immutable.TablesStore, sids []uint64,
	f func(dataPath, msName string, totalChunks int, tbStore immutable.TablesStore, chunk *WriteChunk,
		orderMs, unOrderMs *immutable.MsBuilder, finish bool) (*immutable.MsBuilder, *immutable.MsBuilder))

func (*MemTable) GetConf

func (t *MemTable) GetConf() *Config

func (*MemTable) GetMaxTimeBySidNoLock

func (t *MemTable) GetMaxTimeBySidNoLock(msName string, sid uint64) int64

func (*MemTable) GetMemSize

func (t *MemTable) GetMemSize() int64

func (*MemTable) GetSids

func (t *MemTable) GetSids(msName string, sids []uint64) []uint64

func (*MemTable) NeedFlush

func (t *MemTable) NeedFlush() bool

func (*MemTable) PutMemTable

func (t *MemTable) PutMemTable()

func (*MemTable) Ref

func (t *MemTable) Ref()

func (*MemTable) Reset

func (t *MemTable) Reset()

func (*MemTable) SetIdx

func (t *MemTable) SetIdx(idx *ski.ShardKeyIndex)

func (*MemTable) SortAndDedup

func (t *MemTable) SortAndDedup(msName string, sids []uint64)

func (*MemTable) UnRef

func (t *MemTable) UnRef()

func (*MemTable) Values

func (t *MemTable) Values(msName string, id uint64, tr record.TimeRange, schema record.Schemas, ascending bool) *record.Record

func (*MemTable) WriteRows

func (t *MemTable) WriteRows(rowsD *dictpool.Dict, getLastFlushTime func(msName string, sid uint64) int64,
	addRowCountsBySid func(msName string, sid uint64, rowCounts int64)) error

type MsInfo

type MsInfo struct {
	Schema record.Schemas

	TimeAsd bool
	// contains filtered or unexported fields
}

type SortAuxPool

type SortAuxPool struct {
	// contains filtered or unexported fields
}

type WriteChunk

type WriteChunk struct {
	Mu              sync.Mutex
	Sid             uint64
	LastFlushTime   int64
	OrderWriteRec   WriteRec
	UnOrderWriteRec WriteRec
}

func (*WriteChunk) Init

func (chunk *WriteChunk) Init(sid uint64, schema []record.Field)

type WriteRec

type WriteRec struct {
	// contains filtered or unexported fields
}

func (*WriteRec) GetRecord

func (writeRec *WriteRec) GetRecord() *record.Record

Jump to

Keyboard shortcuts

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