MCPcopy
hub / github.com/dgraph-io/badger / TableInterface

Interface TableInterface

table/table.go:97–101  ·  view source on GitHub ↗

TableInterface is useful for testing.

Source from the content-addressed store, hash-verified

95
96// TableInterface is useful for testing.
97type TableInterface interface {
98 Smallest() []byte
99 Biggest() []byte
100 DoesNotHave(hash uint64) bool
101}
102
103// Table represents a loaded table file with the info we have about it.
104type Table struct {

Callers 20

TestPickSortTablesFunction · 0.65
getKeyRangeFunction · 0.65
dropPrefixesMethod · 0.65
compactBuildTablesMethod · 0.65
getTableInfoMethod · 0.65
pickTableMethod · 0.65
pickTablesMethod · 0.65
TestPickSortTablesFunction · 0.65
getKeyRangeFunction · 0.65
dropPrefixesMethod · 0.65
compactBuildTablesMethod · 0.65

Implementers 2

tableMockiterator_test.go
Tabletable/table.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…