| 17 | |
| 18 | |
| 19 | pub struct Storage<K, Doc: Document> { |
| 20 | // DashMap |
| 21 | collection: DashMap<K, Doc>, |
| 22 | |
| 23 | // HashIndex |
| 24 | hash_index: HashIndex<K>, |
| 25 | |
| 26 | // TagIndex |
| 27 | tag_index: TagIndex<K>, |
| 28 | |
| 29 | // RangeIndex |
| 30 | range_index: RangeIndex<K>, |
| 31 | |
| 32 | // InvertedIndex |
| 33 | inverted_index: InvertedIndex<K>, |
| 34 | |
| 35 | // Wal session |
| 36 | wal_session: Session, |
| 37 | |
| 38 | // Reporter session |
| 39 | reporter_session: router::Session<Event<K, Doc>>, |
| 40 | |
| 41 | off_reporter: bool, |
| 42 | |
| 43 | off_disk: bool |
| 44 | } |
| 45 | |
| 46 | impl<K, Doc> Storage<K, Doc> |
| 47 | where |
nothing calls this directly
no outgoing calls
no test coverage detected