github.com/zuoyebang/bitalostable@v1.0.1-0.20240229032404-e3b99a834294/internal/private/sstable.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 "github.com/zuoyebang/bitalostable/internal/base"
     8  
     9  // SSTableCacheOpts is a hook for specifying cache options to
    10  // sstable.NewReader.
    11  var SSTableCacheOpts func(cacheID uint64, fileNum base.FileNum) interface{}
    12  
    13  // SSTableRawTombstonesOpt is a sstable.Reader option for disabling
    14  // fragmentation of the range tombstones returned by
    15  // sstable.Reader.NewRangeDelIter(). Used by debug tools to get a raw view of
    16  // the tombstones contained in an sstable.
    17  var SSTableRawTombstonesOpt interface{}
    18  
    19  // SSTableWriterDisableKeyOrderChecks is a hook for disabling the key ordering
    20  // invariant check performed by sstable.Writer. It is intended for internal use
    21  // only in the construction of invalid sstables for testing. See
    22  // tool/make_test_sstables.go.
    23  var SSTableWriterDisableKeyOrderChecks func(interface{})
    24  
    25  // SSTableInternalTableOpt is an sstable.Writer option that sets properties for
    26  // sstables being created by the db itself (i.e. through flushes and
    27  // compactions), as opposed to those meant for ingestion.
    28  var SSTableInternalTableOpt interface{}