storage

package
v0.0.0-...-7b3ddb2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StoreBase

type StoreBase struct {
	sync.RWMutex
	Ctx       context.Context
	CtxCancel context.CancelFunc

	NodeID    entity.NodeID
	DataPath  string
	MetaPath  string
	Space     *entity.Space
	Partition *entity.Partition
	CloseOnce sync.Once

	Engine engine.Engine
}

StoreBase is the base class of partition store.

func NewStoreBase

func NewStoreBase(ctx context.Context, PID entity.PartitionID, NodeID entity.NodeID, path, DataPath, MetaPath string, space *entity.Space) (*StoreBase, error)

func (*StoreBase) GetEngine

func (s *StoreBase) GetEngine() engine.Engine

func (*StoreBase) GetSpace

func (s *StoreBase) GetSpace() entity.Space

func (*StoreBase) GetVersion

func (s *StoreBase) GetVersion() entity.Version

func (*StoreBase) SetSpace

func (s *StoreBase) SetSpace(space *entity.Space)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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