GetFromDelta gets the cached version of the list without reading from disk and only applies the existing deltas. This is used in situations where the posting list will only be modified and not read (e.g adding index mutations).
(key []byte)
| 398 | // and only applies the existing deltas. This is used in situations where the |
| 399 | // posting list will only be modified and not read (e.g adding index mutations). |
| 400 | func (lc *LocalCache) GetFromDelta(key []byte) (*List, error) { |
| 401 | return lc.getInternal(key, false, false) |
| 402 | } |
| 403 | |
| 404 | // UpdateDeltasAndDiscardLists updates the delta cache before removing the stored posting lists. |
| 405 | func (lc *LocalCache) UpdateDeltasAndDiscardLists() { |
nothing calls this directly
no test coverage detected