graphaccess

package
v0.0.0-...-0e71bb7 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const LruSizeFiles = 7
View Source
const NumFetchers = 5
View Source
const SizeIntBytes = 4

Variables

This section is empty.

Functions

This section is empty.

Types

type Csr

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

func NewSimpleCsr

func NewSimpleCsr(fetcher storage.Fetcher) *Csr

func (*Csr) GetNeighbours

func (scsr *Csr) GetNeighbours(req Request) []uint32

func (*Csr) GetStats

func (scsr *Csr) GetStats() string

type CsrStats

type CsrStats struct {
	CacheHits atomic.Uint32
	S3Fetches atomic.Uint32
}

type Direction

type Direction byte
const (
	INCOMING Direction = iota
	OUTGOING
	BOTH
)

type GraphAccess

type GraphAccess interface {
	GetNeighbours(Request) []uint32
	GetStats() string
}

type OffsetCsr

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

func NewOffsetCsr

func NewOffsetCsr(fetcher storage.Fetcher) *OffsetCsr

func (*OffsetCsr) GetNeighbours

func (csr *OffsetCsr) GetNeighbours(req Request) []uint32

func (*OffsetCsr) GetStats

func (csr *OffsetCsr) GetStats() string

type PrefetchCsr

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

func NewPrefetchCsr

func NewPrefetchCsr(fetcher storage.Fetcher) *PrefetchCsr

func (*PrefetchCsr) GetNeighbours

func (p *PrefetchCsr) GetNeighbours(req Request) []uint32

func (*PrefetchCsr) GetStats

func (p *PrefetchCsr) GetStats() string

type PrefetchStats

type PrefetchStats struct {
	CacheHits      atomic.Uint32
	PrefetcherHits atomic.Uint32
	InFlightHits   atomic.Uint32
	S3Fetches      atomic.Uint32
}

type Prefetcher

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

func NewPrefetcher

func NewPrefetcher(numThreads int, prefetchCacheSize int, fetcher func(uint32) []edge) *Prefetcher

type Request

type Request struct {
	Node, Label uint32
	Direction   Direction
}

Jump to

Keyboard shortcuts

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