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

Struct CompoundMultiIndex

index.go:785–793  ·  view source on GitHub ↗

CompoundMultiIndex is used to build an index using multiple sub-indexes. Unlike CompoundIndex, CompoundMultiIndex can have both SingleIndexer and MultiIndexer sub-indexers. However, each MultiIndexer adds considerable overhead/complexity in terms of the number of indexes created under-the-hood. It

Source from the content-addressed store, hash-verified

783//
784// Prefix-based indexing is not currently supported.
785type CompoundMultiIndex struct {
786 Indexes []Indexer
787
788 // AllowMissing results in an index based on only the indexers
789 // that return data. If true, you may end up with 2/3 columns
790 // indexed which might be useful for an index scan. Otherwise,
791 // CompoundMultiIndex requires all indexers to be satisfied.
792 AllowMissing bool
793}
794
795func (c *CompoundMultiIndex) FromObject(raw interface{}) (bool, [][]byte, error) {
796 // At each entry, builder is storing the results from the next index

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected