github.com/neatlab/neatio@v1.7.3-0.20220425043230-d903e92fcc75/neatdb/batch.go (about) 1 package neatdb 2 3 const IdealBatchSize = 100 * 1024 4 5 type Batch interface { 6 Writer 7 8 ValueSize() int 9 10 Write() error 11 12 Reset() 13 14 Replay(w Writer) error 15 } 16 17 type Batcher interface { 18 NewBatch() Batch 19 }