store

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurieKey

func GetCurieKey(curie types.CURIE) []byte

func SeekChanges

func SeekChanges(datasetID types.InternalDatasetID, since types.DatasetOffset) []byte

func SeekDataset

func SeekDataset(datasetID types.InternalDatasetID) []byte

func SeekEntity

func SeekEntity(intenalEntityID types.InternalID) []byte

func SeekEntityChanges

func SeekEntityChanges(datasetID types.InternalDatasetID, entityID types.InternalID) []byte

Types

type BadgerStore

type BadgerStore interface {
	GetDB() *badger.DB
	LookupDatasetID(datasetName string) (types.InternalDatasetID, bool)
	LookupDatasetIDs(datasetNames []string) []types.InternalDatasetID
	LookupDatasetName(internalDatasetID types.InternalDatasetID) (string, bool)

	// need access ot in-memory mapping
	IsDatasetDeleted(datasetID types.InternalDatasetID) bool
	LegacyNamespaceAccess
}

type LegacyNamespaceAccess

type LegacyNamespaceAccess interface {
	// need access ot in-memory mapping
	LookupNamespaceExpansion(prefix types.Prefix) (types.URI, error)
	LookupExpansionPrefix(input types.URI) (types.Prefix, error)
}

Jump to

Keyboard shortcuts

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