github.com/coocood/badger@v1.5.1-0.20200528065104-c02ac3616d04/table/table.go (about) 1 package table 2 3 import ( 4 "github.com/coocood/badger/epoch" 5 "github.com/coocood/badger/y" 6 ) 7 8 type Table interface { 9 epoch.Resource 10 ID() uint64 11 NewIterator(reversed bool) y.Iterator 12 Get(key y.Key, keyHash uint64) (y.ValueStruct, error) 13 Size() int64 14 Smallest() y.Key 15 Biggest() y.Key 16 HasOverlap(start, end y.Key, includeEnd bool) bool 17 IsCompacting() bool 18 MarkCompacting(flag bool) 19 Close() error 20 }