github.com/pingcap/badger@v1.5.1-0.20230103063557-828f39b09b6d/table/table.go (about)

     1  package table
     2  
     3  import (
     4  	"github.com/pingcap/badger/epoch"
     5  	"github.com/pingcap/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  }