Home | History | Annotate | Download | only in db

Lines Matching refs:batch

58   WriteBatch batch;
59 ASSERT_EQ("", PrintContents(&batch));
60 ASSERT_EQ(0, WriteBatchInternal::Count(&batch));
64 WriteBatch batch;
65 batch.Put(Slice("foo"), Slice("bar"));
66 batch.Delete(Slice("box"));
67 batch.Put(Slice("baz"), Slice("boo"));
68 WriteBatchInternal::SetSequence(&batch, 100);
69 ASSERT_EQ(100, WriteBatchInternal::Sequence(&batch));
70 ASSERT_EQ(3, WriteBatchInternal::Count(&batch));
74 PrintContents(&batch));
78 WriteBatch batch;
79 batch.Put(Slice("foo"), Slice("bar"));
80 batch.Delete(Slice("box"));
81 WriteBatchInternal::SetSequence(&batch, 200);
82 Slice contents = WriteBatchInternal::Contents(&batch);
83 WriteBatchInternal::SetContents(&batch,
87 PrintContents(&batch));