github.com/neatlab/neatio@v1.7.3-0.20220425043230-d903e92fcc75/neatdb/iterator.go (about)

     1  package neatdb
     2  
     3  type Iterator interface {
     4  	Next() bool
     5  
     6  	Error() error
     7  
     8  	Key() []byte
     9  
    10  	Value() []byte
    11  
    12  	Release()
    13  }
    14  
    15  type Iteratee interface {
    16  	NewIterator() Iterator
    17  
    18  	NewIteratorWithPrefix(prefix []byte) Iterator
    19  }