github.com/neatio-net/neatio@v1.7.3-0.20231114194659-f4d7a2226baa/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 }