github.com/zuoyebang/bitalosdb@v1.1.1-0.20240516111551-79a8c4d8ce20/internal.go (about) 1 // Copyright 2021 The Bitalosdb author(hustxrb@163.com) and other contributors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package bitalosdb 16 17 import "github.com/zuoyebang/bitalosdb/internal/base" 18 19 const ( 20 fileTypeLog = base.FileTypeLog 21 fileTypeLock = base.FileTypeLock 22 fileTypeManifest = base.FileTypeManifest 23 fileTypeMeta = base.FileTypeMeta 24 fileTypeCurrent = base.FileTypeCurrent 25 ) 26 27 const ( 28 InternalKeyKindDelete = base.InternalKeyKindDelete 29 InternalKeyKindSet = base.InternalKeyKindSet 30 InternalKeyKindLogData = base.InternalKeyKindLogData 31 InternalKeyKindPrefixDelete = base.InternalKeyKindPrefixDelete 32 InternalKeyKindMax = base.InternalKeyKindMax 33 InternalKeySeqNumMax = base.InternalKeySeqNumMax 34 ) 35 36 type InternalKeyKind = base.InternalKeyKind 37 38 type InternalKey = base.InternalKey 39 40 type internalIterator = base.InternalIterator 41 42 type FileNum = base.FileNum 43 44 type Compare = base.Compare 45 46 type Equal = base.Equal 47 48 type Split = base.Split 49 50 type Comparer = base.Comparer 51 52 type Logger = base.Logger 53 54 var DefaultComparer = base.DefaultComparer 55 56 var DefaultLogger = base.DefaultLogger