示例#1
0
文件: writer.go 项目: acgshare/bleve
func (w *Writer) NewBatch() store.KVBatch {
	rv := Batch{
		store: w.store,
		merge: store.NewEmulatedMerge(w.store.mo),
		batch: new(leveldb.Batch),
	}
	return &rv
}
示例#2
0
文件: batch.go 项目: acgshare/bleve
func (b *Batch) Reset() {
	b.batch.Reset()
	b.merge = store.NewEmulatedMerge(b.store.mo)
}