MCPcopy
hub / github.com/dgraph-io/dgraph / Value

Method Value

posting/list.go:2016–2020  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 15

alterMethod · 0.45
getAuthModeFunction · 0.45
doQueryMethod · 0.45
isMutationAllowedFunction · 0.45
getValueFunction · 0.45
NewFunction · 0.45
VerifySnapshotFunction · 0.45
WriteBackupMethod · 0.45
handleUidPostingsMethod · 0.45
handleRegexFunctionMethod · 0.45
handleCompareFunctionMethod · 0.45

Calls 3

ValueWithLockHeldMethod · 0.95
RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected