Documentation
¶
Index ¶
Constants ¶
View Source
const ( PrefixSPOg byte = 0x10 // Subject-Predicate-Object-Graph (Standard Forward) PrefixPOSg byte = 0x11 // Predicate-Object-Subject-Graph (Reverse Lookup) PrefixPSOg byte = 0x12 // Predicate-Subject-Object-Graph (Graph Filtering) PrefixGSPO byte = 0x13 // Graph-Subject-Predicate-Object (Isolation Layer) PrefixSystem byte = 0xFF // Metadata (Count, Schema bounds, Leiden Communities) )
Prefix keys for BadgerDB to route to proper index tables.
Variables ¶
View Source
var (
KeyFactCount = []byte{PrefixSystem, 0x01} // uint64 count of stored facts
)
Functions ¶
func DecodeQuadKey ¶
DecodeQuadKey reads the bytes back out of the index, correctly reversing the permutation.
func EncodeQuadKey ¶
EncodeQuadKey produces a strictly aligned 33-byte slice for lexicographical sorting. By using Big-Endian representation, the numeric scale of uint64 perfectly aligns with the byte sequence scale inside BadgerDB SSTables, enabling optimal binary searches via LFTJ (Leapfrog Triejoin).
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store provides the persistent BadgerDB backend for the Sovereign Logic Kernel.
func NewStore ¶
NewStore initializes a high-performance BadgerDB instance optimized for Manglekit's read-heavy Datalog workloads and asynchronous agent write-behinds.
Click to show internal directories.
Click to hide internal directories.