partition_server

package
v0.0.0-...-e603270 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: Apache-2.0 Imports: 21 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 {
	PSID                 uint64
	AdvertiseURL         string
	ListenURL            string
	SmURLs               []string
	EtcdURLs             []string
	MustSync             bool
	CronTimeGC           string
	CronTimeMajorCompact string
	MaxExtentSize        uint32 //in the unit of Bytes
	MaxMetaExtentSize    uint32 //in the unit of Bytes
	SkipListSize         uint32 //in the unit of Bytes
	TraceSampler         float64
	Compression          string
	AssertKeys           bool //Check if all tables' keys are valid
	GatewayListenURL     string
	MaxUnCommitedLogSize uint64 //in the unit of Bytes
}

type PartitionServer

type PartitionServer struct {
	utils.SafeMutex //protect rangePartitions

	PSID uint64
	// contains filtered or unexported fields
}

func NewPartitionServer

func NewPartitionServer(config Config) *PartitionServer

func (*PartitionServer) Batch

func (*PartitionServer) CronTaskCompact

func (ps *PartitionServer) CronTaskCompact()

func (*PartitionServer) CronTaskGC

func (ps *PartitionServer) CronTaskGC()

func (*PartitionServer) Delete

func (*PartitionServer) Get

func (*PartitionServer) Head

func (*PartitionServer) Init

func (ps *PartitionServer) Init()

func (*PartitionServer) Maintenance

func (*PartitionServer) Put

func (*PartitionServer) Range

func (*PartitionServer) ServeGRPC

func (ps *PartitionServer) ServeGRPC(traceSampler float64) error

func (*PartitionServer) Shutdown

func (ps *PartitionServer) Shutdown()

func (*PartitionServer) SplitPart

func (*PartitionServer) StreamPut

func (ps *PartitionServer) StreamPut(stream pspb.PartitionKV_StreamPutServer) error

Jump to

Keyboard shortcuts

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