MCPcopy
hub / github.com/google/mangle / MultiIndexedInMemoryStore

Struct MultiIndexedInMemoryStore

factstore/factstore.go:546–548  ·  view source on GitHub ↗

MultiIndexedInMemoryStore provides a simple implementation backed by a four-level map. For each predicate sym, we have a separate map, using the index and the hash of the nth argument and then hash of the entire atom.

Source from the content-addressed store, hash-verified

544// For each predicate sym, we have a separate map, using the index and the hash of the nth argument
545// and then hash of the entire atom.
546type MultiIndexedInMemoryStore struct {
547 InMemoryStore[map[uint16]map[uint64]map[uint64]*ast.Atom]
548}
549
550// NewMultiIndexedInMemoryStore constructs a new MultiIndexedInMemoryStore.
551func NewMultiIndexedInMemoryStore() MultiIndexedInMemoryStore {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected