Value returns the default value from the posting list. The default value is defined as the value without a language tag. Value cannot be used to read from cache
(readTs uint64)
| 2014 | // defined as the value without a language tag. |
| 2015 | // Value cannot be used to read from cache |
| 2016 | func (l *List) Value(readTs uint64) (rval types.Val, rerr error) { |
| 2017 | l.RLock() |
| 2018 | defer l.RUnlock() |
| 2019 | return l.ValueWithLockHeld(readTs) |
| 2020 | } |
| 2021 | |
| 2022 | func (l *List) ValueWithLockHeld(readTs uint64) (rval types.Val, rerr error) { |
| 2023 | val, found, err := l.findValue(readTs, math.MaxUint64) |
no test coverage detected