Home | History | Annotate | Download | only in db

Lines Matching defs:WriteBatch

5 // WriteBatch::rep_ :=
26 // WriteBatch header has an 8-byte sequence number followed by a 4-byte count.
29 WriteBatch::WriteBatch() {
33 WriteBatch::~WriteBatch() { }
35 WriteBatch::Handler::~Handler() { }
37 void WriteBatch::Clear() {
42 Status WriteBatch::Iterate(Handler* handler) const {
45 return Status::Corruption("malformed WriteBatch (too small)");
61 return Status::Corruption("bad WriteBatch Put");
68 return Status::Corruption("bad WriteBatch Delete");
72 return Status::Corruption("unknown WriteBatch tag");
76 return Status::Corruption("WriteBatch has wrong count");
82 int WriteBatchInternal::Count(const WriteBatch* b) {
86 void WriteBatchInternal::SetCount(WriteBatch* b, int n) {
90 SequenceNumber WriteBatchInternal::Sequence(const WriteBatch* b) {
94 void WriteBatchInternal::SetSequence(WriteBatch* b, SequenceNumber seq) {
98 void WriteBatch::Put(const Slice& key, const Slice& value) {
105 void WriteBatch::Delete(const Slice& key) {
112 class MemTableInserter : public WriteBatch::Handler {
128 Status WriteBatchInternal::InsertInto(const WriteBatch* b,
136 void WriteBatchInternal::SetContents(WriteBatch* b, const Slice& contents) {
141 void WriteBatchInternal::Append(WriteBatch* dst, const WriteBatch* src) {