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.
| 42 | // of this example would split the first and last name and return both as |
| 43 | // values. |
| 44 | type 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…