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

Struct MultiIndexedArrayInMemoryStore

factstore/factstore.go:729–732  ·  view source on GitHub ↗

MultiIndexedArrayInMemoryStore 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, with the ultimate value being an array of Atoms.

Source from the content-addressed store, hash-verified

727// For each predicate sym, we have a separate map, using the index and the hash of the nth argument
728// and then hash of the entire atom, with the ultimate value being an array of Atoms.
729type MultiIndexedArrayInMemoryStore struct {
730 InMemoryStore[map[uint16]map[uint64]map[uint64][]*ast.Atom]
731 count int
732}
733
734var _ FactStoreWithRemove = NewMultiIndexedInMemoryStore()
735

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected