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
| 783 | // |
| 784 | // Prefix-based indexing is not currently supported. |
| 785 | type 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 | |
| 795 | func (c *CompoundMultiIndex) FromObject(raw interface{}) (bool, [][]byte, error) { |
| 796 | // At each entry, builder is storing the results from the next index |
nothing calls this directly
no outgoing calls
no test coverage detected