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

Interface PrefixIndexer

index.go:53–57  ·  view source on GitHub ↗

PrefixIndexer is an optional interface on top of an Indexer that allows indexes to support prefix-based iteration.

Source from the content-addressed store, hash-verified

51// PrefixIndexer is an optional interface on top of an Indexer that allows
52// indexes to support prefix-based iteration.
53type PrefixIndexer interface {
54 // PrefixFromArgs is the same as FromArgs for an Indexer except that
55 // the index value returned should return all prefix-matched values.
56 PrefixFromArgs(args ...interface{}) ([]byte, error)
57}
58
59// StringFieldIndex is used to extract a field from an object
60// using reflection and builds an index on that field.

Callers 2

PrefixFromArgsMethod · 0.65
getIndexValueMethod · 0.65

Implementers 5

CustomIndextxn_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…