Index is an append-only in-memory file index with snapshot support.
| 21 | |
| 22 | // Index is an append-only in-memory file index with snapshot support. |
| 23 | type Index struct { |
| 24 | docs []doc |
| 25 | byGram map[uint32][]uint32 |
| 26 | byPrefix1 [256][]uint32 |
| 27 | byPrefix2 map[uint16][]uint32 |
| 28 | byPath map[string]uint32 |
| 29 | deleted map[uint32]bool |
| 30 | } |
| 31 | |
| 32 | // Snapshot is a frozen, read-only view of the index at a point in time. |
| 33 | type Snapshot struct { |
nothing calls this directly
no outgoing calls
no test coverage detected