Initial commit
This commit is contained in:
19
vendor/github.com/cockroachdb/pebble/internal/private/batch.go
generated
vendored
Normal file
19
vendor/github.com/cockroachdb/pebble/internal/private/batch.go
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// Copyright 2019 The LevelDB-Go and Pebble Authors. All rights reserved. Use
|
||||
// of this source code is governed by a BSD-style license that can be found in
|
||||
// the LICENSE file.
|
||||
|
||||
package private
|
||||
|
||||
import (
|
||||
"github.com/cockroachdb/pebble/internal/base"
|
||||
"github.com/cockroachdb/pebble/internal/keyspan"
|
||||
)
|
||||
|
||||
// BatchSort is a hook for constructing iterators over the point and range
|
||||
// mutations contained in a batch in sorted order. It is intended for testing
|
||||
// use only.
|
||||
var BatchSort func(interface{}) (
|
||||
points base.InternalIterator,
|
||||
rangeDels keyspan.FragmentIterator,
|
||||
rangeKeys keyspan.FragmentIterator,
|
||||
)
|
||||
29
vendor/github.com/cockroachdb/pebble/internal/private/sstable.go
generated
vendored
Normal file
29
vendor/github.com/cockroachdb/pebble/internal/private/sstable.go
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
// Copyright 2019 The LevelDB-Go and Pebble Authors. All rights reserved. Use
|
||||
// of this source code is governed by a BSD-style license that can be found in
|
||||
// the LICENSE file.
|
||||
|
||||
package private
|
||||
|
||||
import "github.com/cockroachdb/pebble/internal/base"
|
||||
|
||||
// SSTableCacheOpts is a hook for specifying cache options to
|
||||
// sstable.NewReader.
|
||||
var SSTableCacheOpts func(cacheID uint64, fileNum base.DiskFileNum) interface{}
|
||||
|
||||
// SSTableRawTombstonesOpt is a sstable.Reader option for disabling
|
||||
// fragmentation of the range tombstones returned by
|
||||
// sstable.Reader.NewRangeDelIter(). Used by debug tools to get a raw view of
|
||||
// the tombstones contained in an sstable.
|
||||
var SSTableRawTombstonesOpt interface{}
|
||||
|
||||
// SSTableWriterDisableKeyOrderChecks is a hook for disabling the key ordering
|
||||
// invariant check performed by sstable.Writer. It is intended for internal use
|
||||
// only in the construction of invalid sstables for testing. See
|
||||
// tool/make_test_sstables.go.
|
||||
var SSTableWriterDisableKeyOrderChecks func(interface{})
|
||||
|
||||
// SSTableInternalProperties is a func(*sstable.Writer) *sstable.Properties
|
||||
// function that allows Pebble-internal code to mutate properties that external
|
||||
// sstable writers are not permitted to edit. It's an untyped interface{} to
|
||||
// avoid a cyclic dependency.
|
||||
var SSTableInternalProperties interface{}
|
||||
Reference in New Issue
Block a user