ski

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const ShardKeyCache = "shard_key_cache"
View Source
const ShardKeyDirectory = "shard_key_index"

Variables

This section is empty.

Functions

This section is empty.

Types

type ShardKeyIndex

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

func NewShardKeyIndex

func NewShardKeyIndex(dataPath string, lockPath *string) (*ShardKeyIndex, error)

func (*ShardKeyIndex) Close

func (idx *ShardKeyIndex) Close() error

func (*ShardKeyIndex) CreateIndex

func (idx *ShardKeyIndex) CreateIndex(name []byte, shardKey []byte, sid uint64) error

func (*ShardKeyIndex) ForceFlush added in v1.0.0

func (idx *ShardKeyIndex) ForceFlush()

func (*ShardKeyIndex) GetShardSeriesCount

func (idx *ShardKeyIndex) GetShardSeriesCount() int

func (*ShardKeyIndex) GetSplitPointsByRowCount

func (idx *ShardKeyIndex) GetSplitPointsByRowCount(poses []int64, f func(name string, sid uint64) (int64, error)) ([]string, error)

func (*ShardKeyIndex) GetSplitPointsWithSeriesCount

func (idx *ShardKeyIndex) GetSplitPointsWithSeriesCount(poses []int64) ([]string, error)

func (*ShardKeyIndex) Open

func (idx *ShardKeyIndex) Open() error

Jump to

Keyboard shortcuts

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