MCPcopy
hub / github.com/hashicorp/go-memdb / MultiIndexer

Interface MultiIndexer

index.go:44–49  ·  view source on GitHub ↗

MultiIndexer is an interface used for defining indexes that generate multiple values per object. Each value is stored as a seperate index pointing to the same object. For example, an index that extracts the first and last name of a person and allows lookup based on eitherd would be a MultiIndexer.

Source from the content-addressed store, hash-verified

42// of this example would split the first and last name and return both as
43// values.
44type MultiIndexer interface {
45 // FromObject extracts index values from an object. The return values
46 // are the same as a SingleIndexer except there can be multiple index
47 // values.
48 FromObject(raw interface{}) (bool, [][]byte, error)
49}
50
51// PrefixIndexer is an optional interface on top of an Indexer that allows
52// indexes to support prefix-based iteration.

Callers 7

FromObjectMethod · 0.65
FromObjectMethod · 0.65
InsertMethod · 0.65
DeleteMethod · 0.65
DeletePrefixMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…