ski

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: 18 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) (*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) GetShardSeriesCount

func (idx *ShardKeyIndex) GetShardSeriesCount() int

func (*ShardKeyIndex) GetSplitPointsByRowCount

func (idx *ShardKeyIndex) GetSplitPointsByRowCount(poses []int64, f func(name string, sid uint64) int64) ([]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