MCPcopy Index your code
hub / github.com/dgraph-io/badger / KeyID

Method KeyID

table/table.go:664–670  ·  view source on GitHub ↗

KeyID returns data key id.

()

Source from the content-addressed store, hash-verified

662
663// KeyID returns data key id.
664func (t *Table) KeyID() uint64 {
665 if t.opt.DataKey != nil {
666 return t.opt.DataKey.KeyId
667 }
668 // By default it's 0, if it is plain text.
669 return 0
670}
671
672// decrypt decrypts the given data. It should be called only after checking shouldDecrypt.
673func (t *Table) decrypt(data []byte) ([]byte, error) {

Callers 4

createTableMethod · 0.95
buildChangeSetFunction · 0.80
addLevel0TableMethod · 0.80
TestTableIndexFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestTableIndexFunction · 0.64