intarrayarray

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedIntArrayMapStore added in v0.0.12

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

func (*CachedIntArrayMapStore) AppendToArray added in v0.0.12

func (ms *CachedIntArrayMapStore) AppendToArray(arrayKey int64, value int64) error

func (*CachedIntArrayMapStore) FlushFile added in v0.0.12

func (ms *CachedIntArrayMapStore) FlushFile() error

func (*CachedIntArrayMapStore) GetArray added in v0.0.12

func (ms *CachedIntArrayMapStore) GetArray(arrayKey int64) ([]int64, error)

func (*CachedIntArrayMapStore) Sync added in v0.0.12

func (ms *CachedIntArrayMapStore) Sync() error

type ConcreteMapStoreCreator

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

func NewConcreteMapStoreCreator

func NewConcreteMapStoreCreator(name string, folder string, digitsPerFile int64, digitsPerFolder int64, elementByteSize int64, cached bool) *ConcreteMapStoreCreator

func (*ConcreteMapStoreCreator) CreateMap

func (c *ConcreteMapStoreCreator) CreateMap() error

func (*ConcreteMapStoreCreator) MapExists

func (c *ConcreteMapStoreCreator) MapExists() bool

func (*ConcreteMapStoreCreator) OpenMap

func (*ConcreteMapStoreCreator) OpenMapReadOnly

func (c *ConcreteMapStoreCreator) OpenMapReadOnly() (IntArrayMapStoreReadOnly, error)

type IntArrayArray

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

func NewIntArrayArray

func NewIntArrayArray(arrayCount int64, elementByteSize int64) IntArrayArray

func (*IntArrayArray) AppendToArray

func (iaa *IntArrayArray) AppendToArray(key int64, val int64)

func (*IntArrayArray) GetArray

func (iaa *IntArrayArray) GetArray(key int64) []int64

func (*IntArrayArray) LoadFile

func (iaa *IntArrayArray) LoadFile(filepath string) error

func (*IntArrayArray) SaveFile

func (iaa *IntArrayArray) SaveFile(filepath string) error

type IntArrayMapStore

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

func (*IntArrayMapStore) AppendToArray

func (ms *IntArrayMapStore) AppendToArray(arrayKey int64, value int64) error

func (*IntArrayMapStore) FlushFile

func (ms *IntArrayMapStore) FlushFile() error

func (*IntArrayMapStore) GetArray

func (ms *IntArrayMapStore) GetArray(arrayKey int64) ([]int64, error)

func (*IntArrayMapStore) Sync

func (ms *IntArrayMapStore) Sync() error

type IntArrayMapStoreCreator

type IntArrayMapStoreCreator interface {
	MapExists() bool
	CreateMap() error
	OpenMap() (IntArrayMapStoreReadWrite, error)
	OpenMapReadOnly() (IntArrayMapStoreReadOnly, error)
}

type IntArrayMapStoreReadOnly

type IntArrayMapStoreReadOnly interface {
	GetArray(arrayKey int64) ([]int64, error)
}

type IntArrayMapStoreReadWrite

type IntArrayMapStoreReadWrite interface {
	IntArrayMapStoreReadOnly
	AppendToArray(arrayKey int64, value int64) error
	FlushFile() error
	Sync() error
}

type VarInt

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

func (*VarInt) FromBytes

func (vi *VarInt) FromBytes(byts []byte) int

FromBytes returns number of bytes read

func (*VarInt) FromInt64

func (vi *VarInt) FromInt64(v int64)

func (*VarInt) ToBytes

func (vi *VarInt) ToBytes() []byte

func (*VarInt) ToInt64

func (vi *VarInt) ToInt64() int64

Jump to

Keyboard shortcuts

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