github.com/zuoyebang/bitalostable@v1.0.1-0.20240229032404-e3b99a834294/internal/private/batch.go (about) 1 // Copyright 2019 The LevelDB-Go and Pebble Authors. All rights reserved. Use 2 // of this source code is governed by a BSD-style license that can be found in 3 // the LICENSE file. 4 5 package private 6 7 import ( 8 "github.com/zuoyebang/bitalostable/internal/base" 9 "github.com/zuoyebang/bitalostable/internal/keyspan" 10 ) 11 12 // BatchSort is a hook for constructing iterators over the point and range 13 // mutations contained in a batch in sorted order. It is intended for testing 14 // use only. 15 var BatchSort func(interface{}) ( 16 points base.InternalIterator, 17 rangeDels keyspan.FragmentIterator, 18 rangeKeys keyspan.FragmentIterator, 19 )