github.com/cockroachdb/pebble@v0.0.0-20231214172447-ab4952c5f87b/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/cockroachdb/pebble/internal/base" 9 "github.com/cockroachdb/pebble/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 )