store

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MinKey    []byte                                                  // Min Key of the all regions
	MaxKey           = []byte{255, 255, 255, 255, 255, 255, 255, 255} // Max Key of the all regions
	Threshold int64  = 256 * 1024 * 1024                              // Threshold of the region size
)

Functions

This section is empty.

Types

type Store

type Store interface {
	// GetRegionByKey gets region and leader peer by region key from cluster.
	GetRegionByKey(key []byte) (region.Region, error)
	// Split splits the region into two regions.
	Split() error
	// Merge merges two adjacent regions into one region.
	Merge() error
}

Store is the interface of store.

func NewStore added in v1.0.12

func NewStore(conf config.StoreConfig) (Store, error)

NewStore creates a new store.

Jump to

Keyboard shortcuts

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