Initial commit
This commit is contained in:
51
vendor/github.com/cockroachdb/pebble/internal.go
generated
vendored
Normal file
51
vendor/github.com/cockroachdb/pebble/internal.go
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
// Copyright 2018 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 pebble
|
||||
|
||||
import "github.com/cockroachdb/pebble/internal/base"
|
||||
|
||||
// InternalKeyKind exports the base.InternalKeyKind type.
|
||||
type InternalKeyKind = base.InternalKeyKind
|
||||
|
||||
// These constants are part of the file format, and should not be changed.
|
||||
const (
|
||||
InternalKeyKindDelete = base.InternalKeyKindDelete
|
||||
InternalKeyKindSet = base.InternalKeyKindSet
|
||||
InternalKeyKindMerge = base.InternalKeyKindMerge
|
||||
InternalKeyKindLogData = base.InternalKeyKindLogData
|
||||
InternalKeyKindSingleDelete = base.InternalKeyKindSingleDelete
|
||||
InternalKeyKindRangeDelete = base.InternalKeyKindRangeDelete
|
||||
InternalKeyKindMax = base.InternalKeyKindMax
|
||||
InternalKeyKindSetWithDelete = base.InternalKeyKindSetWithDelete
|
||||
InternalKeyKindRangeKeySet = base.InternalKeyKindRangeKeySet
|
||||
InternalKeyKindRangeKeyUnset = base.InternalKeyKindRangeKeyUnset
|
||||
InternalKeyKindRangeKeyDelete = base.InternalKeyKindRangeKeyDelete
|
||||
InternalKeyKindIngestSST = base.InternalKeyKindIngestSST
|
||||
InternalKeyKindDeleteSized = base.InternalKeyKindDeleteSized
|
||||
InternalKeyKindInvalid = base.InternalKeyKindInvalid
|
||||
InternalKeySeqNumBatch = base.InternalKeySeqNumBatch
|
||||
InternalKeySeqNumMax = base.InternalKeySeqNumMax
|
||||
InternalKeyRangeDeleteSentinel = base.InternalKeyRangeDeleteSentinel
|
||||
)
|
||||
|
||||
// InternalKey exports the base.InternalKey type.
|
||||
type InternalKey = base.InternalKey
|
||||
|
||||
type internalIterator = base.InternalIterator
|
||||
|
||||
// ErrCorruption is a marker to indicate that data in a file (WAL, MANIFEST,
|
||||
// sstable) isn't in the expected format.
|
||||
var ErrCorruption = base.ErrCorruption
|
||||
|
||||
// AttributeAndLen exports the base.AttributeAndLen type.
|
||||
type AttributeAndLen = base.AttributeAndLen
|
||||
|
||||
// ShortAttribute exports the base.ShortAttribute type.
|
||||
type ShortAttribute = base.ShortAttribute
|
||||
|
||||
// LazyFetcher exports the base.LazyFetcher type. This export is needed since
|
||||
// LazyValue.Clone requires a pointer to a LazyFetcher struct to avoid
|
||||
// allocations. No code outside Pebble needs to peer into a LazyFetcher.
|
||||
type LazyFetcher = base.LazyFetcher
|
||||
Reference in New Issue
Block a user