github.com/zuoyebang/bitalostable@v1.0.1-0.20240229032404-e3b99a834294/internal.go (about) 1 // Copyright 2018 The LevelDB-Go and Pebble and Bitalostored 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 bitalostable 6 7 import "github.com/zuoyebang/bitalostable/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 InternalKeyKindInvalid = base.InternalKeyKindInvalid 26 InternalKeySeqNumBatch = base.InternalKeySeqNumBatch 27 InternalKeySeqNumMax = base.InternalKeySeqNumMax 28 InternalKeyRangeDeleteSentinel = base.InternalKeyRangeDeleteSentinel 29 ) 30 31 // InternalKey exports the base.InternalKey type. 32 type InternalKey = base.InternalKey 33 34 type internalIterator = base.InternalIterator 35 36 // ErrCorruption is a marker to indicate that data in a file (WAL, MANIFEST, 37 // sstable) isn't in the expected format. 38 var ErrCorruption = base.ErrCorruption