rawkvlinearizability

package module
v0.0.0-...-dfd9850 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RawkvModel

func RawkvModel() core.Model

RawkvModel creates the core.Model interface.

func RawkvParser

func RawkvParser() history.RecordParser

RawkvParser creates the history.RecordParser interface.

Types

type Config

type Config struct {
	KeyStart        int
	KeyNum          int
	ReadProbability int
	WriteProbaility int
}

Config is the config of the test case.

type Key

type Key int

Key type

func (Key) Equals

func (a Key) Equals(b persistent_treap.Equitable) bool

Equals implements key's persistent_treap.Equitable interface

func (Key) Less

func (a Key) Less(b persistent_treap.Sortable) bool

Less implements persistent_treap.Sortable interface

type KeyValuePair

type KeyValuePair struct {
	K Key
	V Value
}

KeyValuePair type

type RandomValueConfig

type RandomValueConfig struct {
	ValueNum10KB  int
	ValueNum100KB int
	ValueNum1MB   int
	ValueNum5MB   int
}

RandomValueConfig is the config of generating RandomValues

type RandomValues

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

RandomValues is some random byte slices which have different hash value.

func GenerateRandomValueString

func GenerateRandomValueString(config RandomValueConfig) RandomValues

GenerateRandomValueString generates RandomValues

type RawkvClientCreator

type RawkvClientCreator struct {
	Cfg          Config
	RandomValues *RandomValues
}

RawkvClientCreator creates a test client.

func (RawkvClientCreator) Create

Create creates a RawkvClient.

type Value

type Value uint32

Value type

func (Value) Equals

func (a Value) Equals(b persistent_treap.Equitable) bool

Equals implements persistent_treap.Equitable interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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