Categorygithub.com/finddiff/nutsDBMD
modulepackage
0.1.48
Repository: https://github.com/finddiff/nutsdbmd.git
Documentation: pkg.go.dev

# README

项目来源于 nutsDB在nutsDB上做了一下修改,尝试提高启动时加载效率,缩短时间。 同时希望提供内存使用效率。

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

ErrBucketAndKey returns when bucket or key not found.
ErrNotFoundKeyInBucket returns when key not in the bucket.
ErrSeparatorForZSetKey returns when zSet key contains the SeparatorForZSetKey flag.
ErrWhenBuildListIdx returns err when build listIdx.
IsBucketEmpty is true if the bucket is empty.
IsBucketNotFound is true if the error indicates the bucket is not exists.
IsDBClosed is true if the error indicates the db was closed.
IsExpired checks the ttl if expired or not.
IsKeyEmpty is true if the key is empty.
IsKeyNotFound is true if the error indicates the key is not found.
IsPrefixScan is true if prefix scanning not found the result.
IsPrefixSearchScan is true if prefix and search scanning not found the result.
No description provided by the author
No description provided by the author
Open returns a newly initialized DB object with Option.
ReadBucketMeta returns bucketMeta at given file path name.
SortedEntryKeys returns sorted entries.
Truncate changes the size of the file.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

Bptree save memory hit in bptree.
Bptree save memory hit in btree.
BucketMetaHeaderSize returns the header size of the BucketMeta.
BucketMetaSuffix returns b+ tree index suffix.
Committed represents the tx committed status.
CritBit save memory hit in btree.
DataBPTreeBucketDeleteFlag represents the delete BPTree bucket flag.
DataDeleteFlag represents the data delete flag.
DataEntryHeaderSize returns the entry header size.
DataListBucketDeleteFlag represents the delete List bucket flag.
DataLPopFlag represents the data LPop flag.
DataLPushFlag represents the data LPush flag.
LRemByIndex represents the data LRemByIndex flag.
DataLRemFlag represents the data LRem flag.
DataLSetFlag represents the data LSet flag.
DataLTrimFlag represents the data LTrim flag.
DataRPopFlag represents the data RPop flag.
DataRPushFlag represents the data RPush flag.
DataSetBucketDeleteFlag represents the delete Set bucket flag.
DataSetFlag represents the data set flag.
DataSortedSetBucketDeleteFlag represents the delete Sorted Set bucket flag.
DataStructureBPTree represents the data structure b+ tree flag.
DataStructureList represents the data structure list flag.
DataStructureNone represents not the data structure.
DataStructureSet represents the data structure set flag.
DataStructureSortedSet represents the data structure sorted set flag.
DataSuffix returns the data suffix.
DataZAddFlag represents the data ZAdd flag.
DataZPopMaxFlag represents the data ZPopMax flag.
DataZPopMinFlag represents the data aZPopMin flag.
DataZRemFlag represents the data ZRem flag.
DataZRemRangeByRankFlag represents the data ZRemRangeByRank flag.
No description provided by the author
FileIO represents the read and write mode using standard I/O.
hashmap save memory hit in btree.
HintBPTSparseIdxMode represents b+ tree sparse index mode.
HintKeyAndRAMIdxMode represents ram index (only key) mode.
HintKeyValAndRAMIdxMode represents ram index (key and value) mode.
MMap represents the read and write mode using mmap.
Persistent represents the data persistent flag.
ScanNoLimit represents the data scan no limit flag.
SeparatorForListKey represents separator for listKey.
SeparatorForZSetKey represents separator for zSet key.
Skiplist save memory hit in skiplist.
No description provided by the author
UnCommitted represents the tx unCommitted status.

# Variables

DefaultOptions represents the default options.
ErrBucket is returned when bucket is not in the HintIdx.
ErrBucketEmpty is returned if bucket is empty.
ErrBucketNotFound is returned when looking for bucket that does not exist.
ErrCapacity is returned when capacity is error.
ErrCrc is returned when crc is error.
ErrCrcZero is returned when crc is 0.
ErrDBClosed is returned when db is closed.
ErrEntryIdxModeOpt is returned when set db EntryIdxMode option is wrong.
ErrFn is returned when fn is nil.
ErrIndexOutOfBound is returned when given offset out of mapped region.
ErrKeyAndValSize is returned when given key and value size is too big.
ErrKeyEmpty is returned if an empty key is passed on an update function.
No description provided by the author
ErrNotFoundKey is returned when key not found int the bucket on an view function.
ErrNotSupportHintBPTSparseIdxMode is returned not support mode `HintBPTSparseIdxMode`.
ErrPrefixScan is returned when prefix scanning not found the result.
ErrPrefixSearchScan is returned when prefix and search scanning not found the result.
ErrRangeScan is returned when range scanning not found the result.
ErrSeparatorForListKey returns when list key contains the SeparatorForListKey.
ErrTxClosed is returned when committing or rolling back a transaction that has already been committed or rolled back.
ErrTxNotWritable is returned when performing a write operation on a read-only transaction.
ErrUnmappedMemory is returned when a function is called on unmapped memory.

# Structs

BucketMeta represents the bucket's meta-information.
DataFile records about data file information.
No description provided by the author
Entry
No description provided by the author
FdInfo holds base fd info.
FileIORWManager represents the RWManager which using standard I/O.
No description provided by the author
No description provided by the author
MMapRWManager represents the RWManager which using mmap.
Options records params for creating DB object.
Record records entry and hint.
Tx represents a transaction.

# Interfaces

No description provided by the author
RWManager represents an interface to a RWManager.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EntryIdxMode represents entry index mode.
No description provided by the author
No description provided by the author
RWMode represents the read and write mode.
No description provided by the author
No description provided by the author