2014-01-13 19:52:22 +01:00
|
|
|
from libcpp cimport bool as cpp_bool
|
|
|
|
from slice_ cimport Slice
|
|
|
|
from status cimport Status
|
|
|
|
|
|
|
|
cdef extern from "rocksdb/iterator.h" namespace "rocksdb":
|
|
|
|
cdef cppclass Iterator:
|
2014-01-17 20:06:17 +01:00
|
|
|
cpp_bool Valid() nogil except+
|
|
|
|
void SeekToFirst() nogil except+
|
|
|
|
void SeekToLast() nogil except+
|
|
|
|
void Seek(const Slice&) nogil except+
|
|
|
|
void Next() nogil except+
|
|
|
|
void Prev() nogil except+
|
2017-04-23 13:32:41 +02:00
|
|
|
void SeekForPrev(const Slice&) nogil except+
|
2014-01-17 20:06:17 +01:00
|
|
|
Slice key() nogil except+
|
|
|
|
Slice value() nogil except+
|
|
|
|
Status status() nogil except+
|