github.com/cockroachdb/pebble@v1.1.2/internal.go (about) 1 // Copyright 2018 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 pebble 6 7 import "github.com/cockroachdb/pebble/internal/base" 8 9 // InternalKeyKind exports the base.InternalKeyKind type. 10 type InternalKeyKind = base.InternalKeyKind 11 12 // These constants are part of the file format, and should not be changed. 13 const ( 14 InternalKeyKindDelete = base.InternalKeyKindDelete 15 InternalKeyKindSet = base.InternalKeyKindSet 16 InternalKeyKindMerge = base.InternalKeyKindMerge 17 InternalKeyKindLogData = base.InternalKeyKindLogData 18 InternalKeyKindSingleDelete = base.InternalKeyKindSingleDelete 19 InternalKeyKindRangeDelete = base.InternalKeyKindRangeDelete 20 InternalKeyKindMax = base.InternalKeyKindMax 21 InternalKeyKindSetWithDelete = base.InternalKeyKindSetWithDelete 22 InternalKeyKindRangeKeySet = base.InternalKeyKindRangeKeySet 23 InternalKeyKindRangeKeyUnset = base.InternalKeyKindRangeKeyUnset 24 InternalKeyKindRangeKeyDelete = base.InternalKeyKindRangeKeyDelete 25 InternalKeyKindIngestSST = base.InternalKeyKindIngestSST 26 InternalKeyKindDeleteSized = base.InternalKeyKindDeleteSized 27 InternalKeyKindInvalid = base.InternalKeyKindInvalid 28 InternalKeySeqNumBatch = base.InternalKeySeqNumBatch 29 InternalKeySeqNumMax = base.InternalKeySeqNumMax 30 InternalKeyRangeDeleteSentinel = base.InternalKeyRangeDeleteSentinel 31 ) 32 33 // InternalKey exports the base.InternalKey type. 34 type InternalKey = base.InternalKey 35 36 type internalIterator = base.InternalIterator 37 38 // ErrCorruption is a marker to indicate that data in a file (WAL, MANIFEST, 39 // sstable) isn't in the expected format. 40 var ErrCorruption = base.ErrCorruption 41 42 // AttributeAndLen exports the base.AttributeAndLen type. 43 type AttributeAndLen = base.AttributeAndLen 44 45 // ShortAttribute exports the base.ShortAttribute type. 46 type ShortAttribute = base.ShortAttribute 47 48 // LazyFetcher exports the base.LazyFetcher type. This export is needed since 49 // LazyValue.Clone requires a pointer to a LazyFetcher struct to avoid 50 // allocations. No code outside Pebble needs to peer into a LazyFetcher. 51 type LazyFetcher = base.LazyFetcher